React Error: Failed at the xxx@0.1.0 start script 'react-scripts start'.

原文发表自 szhshp的第三边境研究所 , 转载请注明

错误细节

npm ERR! Ubuntu 16.0.4
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! UpScore@0.6.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the UpScore@0.6.0 start script 'react-scripts start'.
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 UpScore package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     react-scripts start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs UpScore
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls UpScore
npm ERR! There is likely additional logging output above.

Solution

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

解决方式很简单:

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

参考文献

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 开学的时间进入了 倒计时,儿子也送去了托辅。儿子还对我说:妈妈我终于盼到快开学了,我想老师还有同学们。我说:真的吗...
    家和万事兴_dbbc阅读 188评论 0 1
  • 我啜了一口咖啡,冰凉的流体和苦涩的口感让人清醒许多。清醒是一种很悲戚的状态,因为在这样的状态下,你不得不认真地去审...
    小小星球阅读 591评论 0 0
  • 冬日里的雨依然惊天动地、淅淅沥沥,时而气势磅薄、时而缠缠绵绵、时而轻轻絮语,仿佛在向人们诉说着人间的各种情愫,...
    angel佳人阅读 557评论 1 7
  • 每日推荐: 每日一歌――王菲《但愿人长久》 每日一影――金依萌&潘安子《一路惊喜》 开始记录的第一百零八天。 ...
    萨拉芯雪阅读 213评论 0 0
  • ● 考研单词100个 ✔ ● 四级单词50个 ✔ ● 四级重点难点词汇精讲 ✔ 不公平!为什么二月只...
    MickeyMinnie阅读 226评论 2 2