报错记录 |npm start 报错 Error: spawn cmd ENOENT

报错内容

Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19) npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-scripts start`
npm ERR! Exit status 1
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!     C:\Users\asus\AppData\Roaming\npm-cache\_logs\2019-09-03T13_39_22_260Z-debug.log

参考教程

React之npm ERR! [email protected] start: react-scripts start
‘react-scripts’ 不是内部或外部命令,也不是可运行的程序 或批处理文件–错误处理
启动失败 报:spawn cmd ENOENT 错误
使用nodejs启动项目 报错Error: spawn cmd ENOENT


解决办法

系统变量加入 cmd 所在路径 C:\WINDOWS\system32

发布了39 篇原创文章 · 获赞 1 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_44537414/article/details/100528478
今日推荐