npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! 2019-7-24@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the 2019-7-24@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/liuzhao/.npm/_logs/2019-07-25T04_02_03_249Z-debug.log

npm ERR! 2019-7-24@0.1.0 start: `react-scripts start`

 

应该就是react-scripts没有安装成global的

解决方式很简单:

npm install -g npm@latest to update npm because it is sometimes buggy.
rm -rf node_modules to remove the existing modules.
npm install to re-install the project dependencies.

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐