Reactjs 问题开始反应

Reactjs 问题开始反应,reactjs,windows,Reactjs,Windows,我在windows上运行ubuntu shell,当我尝试“npm启动”时,我得到了这个错误。还有其他人有这个问题吗 Starting the development server... events.js:174 throw er; // Unhandled 'error' event ^ Error: spawn cmd.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_pr

我在windows上运行ubuntu shell,当我尝试“npm启动”时,我得到了这个错误。还有其他人有这个问题吗

Starting the development server...

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

Error: spawn cmd.exe 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! awesome-project@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the awesome-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/tyronsamaroo/.npm/_logs/2019-09-07T19_46_59_272Z-debug.log
你在Windows上吗

您可能没有系统路径环境变量。请尝试在终端中运行此命令,然后再次运行该命令


export PATH=$PATH:C:\Windows\System32

这实际上是做什么的?你有可以分享的链接吗?我可以读到吗?另外,我尝试了一些奇怪的方法,现在效果不错。在项目文件中,我将react脚本更改为2.1.8版,之前是3.1.1版。然后,我还运行了npm安装来处理依赖项,它工作了。。。