跟随create-react-app时发生错误

问题描述 投票:0回答:1

我想快速解决这些错误并研究。但搜索仍在继续,即使其他人试图这样做,症状也会继续出现。

> [email protected] 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! [email protected] start: `react-scripts start`
npm ERR! spawn sh ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] 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

为什么会这样?

javascript node.js reactjs npm
1个回答
-1
投票

您不需要使用react-scripts命令运行项目,只需使用如下所示的npm命令,如package.json scripts对象中所示:

npm run start
© www.soinside.com 2019 - 2024. All rights reserved.