小编wij*_*Men的帖子

react-scripts' 不被识别为内部或外部命令

我遵循 udemy 课程,使用create-react-app,然后使用npm start. 它工作正常,直到我安装react-router-dom然后我在终端中收到此错误:

react-scripts' is not recognized as an internal or external command, operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! venue@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the venue@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Run Code Online (Sandbox Code Playgroud)

有人可以解释一下这是怎么回事吗?以及如何修复它?

谢谢

npm reactjs

8
推荐指数
2
解决办法
1万
查看次数

标签 统计

npm ×1

reactjs ×1