【问题标题】:Unable to run expo developer tools无法运行 expo 开发者工具
【发布时间】:2020-11-16 22:34:51
【问题描述】:

当我使用命令 NPM start 开始运行脚手架的 react 本机程序时出现错误。错误是

C:\Users\ron\Desktop\pro\DoneWithIt>npm start

> @ start C:\Users\ron\Desktop\pro\DoneWithIt
> expo start

Starting project at C:\Users\ron\Desktop\pro\DoneWithIt
Expo DevTools is running at http://localhost:19002
Opening DevTools in the browser... (press shift-d to disable)
Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
    at onErrorNT (internal/child_process.js:468:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ 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\ron\AppData\Roaming\npm-cache\_logs\2020-07-27T14_46_27_490Z-debug.log

【问题讨论】:

标签: reactjs react-native npm expo


【解决方案1】:

当您没有在环境变量中将“%SystemRoot%\system32”设置为路径变量时会发生这种情况。

【讨论】:

    猜你喜欢
    • 2022-08-23
    • 2019-06-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-25
    • 1970-01-01
    相关资源
    最近更新 更多