[英]An error occurred while following creat-react-app
I want to solve these errors quickly and study. 我想快速解决这些错误并进行研究。 But the search continues and the symptoms continue to appear even though others have tried to do so.
但是搜索仍在继续,即使其他人试图这样做,症状仍会继续出现。
> 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
node version: 8.11.4
节点版本:8.11.4
npm version: 5.6.0npm版本:5.6.0
Why is this happening? 为什么会这样呢?
您不需要使用react-scripts命令运行项目,只需使用如下的npm命令,如在package.json脚本对象中所见:
npm run start
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.