angular / angular2-seed

MIT License
1.01k stars 640 forks source link

error when i start npm #157

Closed aymenHarbaoui closed 7 years ago

aymenHarbaoui commented 7 years ago

I get this error below when i start my server npm. Any help ?

ERROR in (webpack)-dev-server/client?http://localhost:8000 Module not found: Error: Can't resolve 'strip-ansi' in 'C:\Angular2\angularSeed\angular2-seed\node_modules\webpack-dev-server\client' @ (webpack)-dev-server/client?http://localhost:8000 3:16-37 @ multi main

ERROR in (webpack)-dev-server/client/socket.js Module not found: Error: Can't resolve 'sockjs-client' in 'C:\Angular2\angularSeed\angular2-seed\node_modules\webpack-dev-server\client' @ (webpack)-dev-server/client/socket.js 1:13-37 @ (webpack)-dev-server/client?http://localhost:8000 @ multi main webpack: bundle is now VALID.

peturh commented 7 years ago

Are you sure your using the correct node version? I got the same when I was using Node 4.x

aymenHarbaoui commented 7 years ago

i have npm@2.15.8 version and node 4.x

peturh commented 7 years ago

Then there is your problem.

From README.md:

Make sure you have node.js installed version 5+

aymenHarbaoui commented 7 years ago

Okay thank you ! because i used npm in different project ( as cordova mobile) so i think as you said this my probleme. Thank you very much