在reactjs中运行带有npm start的项目时生成cmd ENOENT错误

时间:2019-10-12 07:34:12

标签: reactjs cmd

使用npm start运行项目时出现以下错误 怎么了?

这个问题与环境有关吗?变量?

    events.js:174
      throw er; // Unhandled 'error' event
      ^

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! my-app@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-app@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!     C:\XXX\admin\AppData\Roaming\npm-cache\_logs\2019-10-12T07_24_09_867Z-debug.log

请高度赞赏

谢谢。

0 个答案:

没有答案