我想运行我的项目,但是npm启动错误-_-
npm ERR! errno 1
npm ERR! breednder-project@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the breednder-project@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! /home/aziz/.npm/_logs/2020-02-15T09_11_32_000Z-debug.log```
答案 0 :(得分:0)
您是否尝试恢复依赖关系?
运行npm install
,并确保至少从Node和npm版本开始 npm大于6,节点大于10
npm -v
node -v
最后,尝试删除node_modules和package-lock
然后再次执行npm i
答案 1 :(得分:0)
我之前遇到过这个问题,所以我将分享我的问题:
在package.json中的只需验证您启动命令的完整性即可。另外尝试npm run start
(向其中添加运行)
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},