I am just starting with node, and the server in general. I followed along with a well-watched YouTube video, and I donβt understand here. I installed webpack and webpack-dev server both globally and in the project folder. Now, if I try to start webpack (by typing nodejs webpack in the terminal) or webpack-dev-server, it will just give me this error:
andrew@AndrewLaptop :~/Documents/mean-todo-app$ nodejs webpack module.js:340 throw err; ^ Error: Cannot find module '/home/andrew/Documents/mean-todo-app/webpack' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3
Shouldn't you look for mean-todo-app / node_modules / webpack instead of middle-todo-app / webpack ?
Again, new to all of this so that I might be missing out on something stupid, but I was looking to no avail.
thanks
edit: think i could mention i'm on ubuntu if that matters
source share