我想迅速解决这些错误并进行研究。但是搜索仍在继续,即使其他人试图这样做,症状仍会继续出现。
> hello-react@0.1.0 start /Users/kimseungwon/hello-react
> react-scripts start
> npm ERR! file sh
> npm ERR! path sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn sh
npm ERR! hello-react@0.1.0 start: `react-scripts start`
npm ERR! spawn sh ENOENT
npm ERR!
npm ERR! Failed at the hello-react@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/kimseungwon/.npm/_logs/2018-09-02T08_28_05_806Z-debug.log
节点版本:8.11.4
npm版本:5.6.0
为什么会这样?
答案 0 :(得分:-1)
您无需使用react-scripts命令运行项目,只需使用如下所示的npm命令,如在package.json脚本对象中所见:
npm run start