Fail to run npm start
Hi,
I was trying to run npm start after I didn't npm install under examples directory. But I got errors. Here is the npm_error.log. Please help me to figure it out. Thanks!
0 info it worked if it ends with ok
1 verbose cli [ '/Users/yinglinchen/.nvm/versions/node/v0.12.4/bin/node',
1 verbose cli '/Users/yinglinchen/.nvm/versions/node/v0.12.4/bin/npm',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: node server.js
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.node server.js
17 error Exit status 1
18 error Failed at the [email protected] start script 'node server.js'.
18 error This is most likely a problem with the react-forms-examples package,
18 error not with npm itself.
Hi. You need to run npm install on the main directory as well. examples package.json only has the additional dependencies. I would correct the instruction. so it would be like,
npm install
cd examples
npm install
npm start
Hi, I followed your instruction. But I still get same errors. Before I do npm install,I did rm -rf node_modules.
I just tried, and it worked though.
git clone https://github.com/prometheusresearch/react-forms.git
cd react-forms
npm i
cd examples
npm i
npm start
I am not sure whether anything to do with your node version as it looks quite old. Mine is
node --version ⏎ develop ◼
v6.3.1
npm --version develop ◼
3.10.3
also what is the message on the terminal?
yeah, my node version is pretty old. That probably cause the problem.
node --version v0.12.4 npm --version 2.10.1
I have other programs depending on the nodes version. So I probably will not update the node version.
Since you use, nvm, you could test it seperately though. But, I am not sure which dependency is not compatible with your node version.