Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/382.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 反应错误:这可能不是npm的问题。上面可能有额外的日志输出_Javascript_Html_Css_Reactjs_React Native - Fatal编程技术网

Javascript 反应错误:这可能不是npm的问题。上面可能有额外的日志输出

Javascript 反应错误:这可能不是npm的问题。上面可能有额外的日志输出,javascript,html,css,reactjs,react-native,Javascript,Html,Css,Reactjs,React Native,在我的项目中,我使用react。现在我要做的是将远程服务器中的项目部署到实际服务器中。我正在使用npm创建和启动一个项目。但是我无法构建我的项目,因为下面的错误一再发生 C:\Users\User\react-tutorial>npm start > react-tutorial@0.1.0 start C:\Users\User\react-tutorial > react-scripts start i 「wds」: Project is running at http

在我的项目中,我使用react。现在我要做的是将远程服务器中的项目部署到实际服务器中。我正在使用npm创建和启动一个项目。但是我无法构建我的项目,因为下面的错误一再发生

C:\Users\User\react-tutorial>npm start

> react-tutorial@0.1.0 start C:\Users\User\react-tutorial
> react-scripts start

i 「wds」: Project is running at http://192.168.225.236/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\User\react-tutorial\public
i 「wds」: 404s will fallback to /
Starting the development server...

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

Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs: [ '/s', '/c', 'start', '""', '/b', '"http://localhost:3000/"' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-tutorial@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-tutorial@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:\Users\User\AppData\Roaming\npm-cache\_logs\2020-07-27T07_26_30_467Z-debug.log
我如何解决这个问题

编辑:成功了,我得到了已经问过的答案

尝试将C:\Windows\System32添加到全局路径环境变量,或使用清除npm缓存

npm cache clear --force
已经问过

尝试将C:\Windows\System32添加到全局路径环境变量,或使用清除npm缓存

npm cache clear --force

这回答了你的问题吗?这回答了你的问题吗?