ReduxSimpleStarter
ReduxSimpleStarter copied to clipboard
React boiler plate project (starting server error): SOLUTION
npm start
[email protected] start /home/nilesh/Desktop/Work/React files/ReduxSimpleStarter node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js
sh: 1: node: not found
npm ERR! Linux 4.13.0-37-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] start: node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script 'node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the redux-simple-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs redux-simple-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls redux-simple-starter
npm ERR! There is likely additional logging output above.
For all guys facing the same error
Do the following:
- Go to your terminal and install node ( not node js cause you have already installed node js and npm)
This could be done by writing:
sudo apt get install nodejs-legacy
in your terminal and after the package is installed
go to your project file folder i.e ReduxSimpleStarter and start the server by writing following command
npm start
Note : Non mac users can ignore the architecture error that my come during (npm install )
Kindly let me know in the comments, if you guys face any further problem