[FIX] Error Cannot find module 'stream/web' in Node.js Project in Terminal [SOLVED]
Feb 5, 2025
Get the full source code of application here:
Hi Join the official discord server to resolve doubts here:
https://discord.gg/cRnjhk6nzW
Visit my Online Free Media Tool Website
https://freemediatools.com/
Buy Premium Scripts and Apps Here:
https://procodestore.com/
Show More Show Less View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I will show you how to fix
0:04
this error if any times this error comes
0:08
which is cannot find module stream at/
0:13
web so this error comes whenever you are
0:16
building your nodejs
0:18
projects or any react GS project VJs any
0:21
front-end projects so specifically if
0:23
you're working with nodejs it this error
0:26
basically comes cannot find module
0:28
stream SL web so I personally have basic
0:33
just faced these addor messages a lot so
0:37
I will show you in this video how to fix
0:38
this and the problem is very easy to fix
0:41
because I found out a solution on stack
0:45
Overflow in order to fix fix this uh I'm
0:48
using nodejs version you can see as I'm
0:52
using node version manager to uh execute
0:55
multiple versions of nodejs so you can
0:58
currently we are using the nodejs
1:00
version which is
1:02
1420.1 so this error comes because you
1:06
are using the old version of nodejs so
1:09
that's why you need to update to a
1:12
latest version at least you should have
1:16
160.0 so if you have this version this
1:18
error will not come so now what happen
1:21
if I change my version so if I say nbm
1:24
use this version
1:28
16.0 so you can use use this tool node
1:30
version manager to use multiple versions
1:33
of nodejs concurrently at the same time
1:36
so you can switch to this version using
1:38
this command so as I type this command
1:41
this alert window will happen and now I
1:44
am switched to this version of nodejs
1:46
which is 16.0 point0 so now if I execute
1:50
the command here versal you will see
1:53
this error will not come so I will be
1:55
able to deploy my project to worel so
1:57
the build the project will be
2:00
successfully build it and it will be
2:01
deployed
2:03
so it's a very simple fix so if I show
2:08
you now I'm using this version of nodejs
2:10
which is
2:11
160.0 not using this so if I again
2:14
switch back to this version the old
2:16
version 14.
2:19
[Music]
2:20
21.3 so again you will see the same
2:22
error happening so if I again type
2:25
versal
2:30
sorry let me just switch to that version
2:38
14 so again this error will come cannot
2:41
find module stream / web so just make
2:44
sure that you are using at least this
2:47
version which is
2:49
160.0 the node version should be at
2:51
least this version so that error comes
2:54
because you are using the old version
2:56
which is
2:58
14.2.1 which is the old version so at
3:00
least you should have installed this
3:03
version 16.0 point0 it also works with
3:06
the latest version which is 21. 6.2 at
3:09
the time of recording this video but
3:11
still make sure that you at least use
3:13
16.0 point0 then this error will not
3:16
come it will be fixed so it's a very
3:20
simple fix you just use at least 16.0
3:23
point0 and as soon as you do this this
3:27
error will go away and this will be
3:29
fixed next so thank you very much guys
3:31
for watching this short little video and
3:35
also check out my website as well free
3:37
media tools.com uh which contains
3:39
thousands of tools regarding audio video
3:41
and MH and I will be seeing you guys in
3:44
the next video
#Programming
#Software
