“错误:spawn cmd ENOENT"在世博会启动项目中 [英] "Error: spawn cmd ENOENT" In Expo Init Project
本文介绍了“错误:spawn cmd ENOENT"在世博会启动项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用
expo init firstexpo
expo init firstexpo
但我在命令提示符处收到此错误
But I get this error at Command Prompt
错误:spawn cmd ENOENT
PS C:UsersAlex estingfirstexpo> expo start
[16:21:09] Starting project at C:UsersAlex estingfirstexpo
[16:21:11] Expo DevTools is running at http://localhost:19002
[16:21:11] Opening DevTools in the browser... (press shift-d to disable)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
PS C:UsersAlex estingfirstexpo>
npm 启动错误找不到模块opn"
[16:38:49] Starting project at C:UsersAlex estingfirstexpo
[16:38:52] Expo DevTools is running at http://localhost:19002
[16:38:52] Opening DevTools in the browser... (press shift-d to disable)
[16:38:52] Cannot find module 'opn'
[16:38:52] Set EXPO_DEBUG=true in your env to view the stack trace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! empty-project-template@ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the empty-project-template@ 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:UsersAlexAppDataRoaming
pm-cache\_logs2018-11-24T08_38_52_344Z-debug.log
我对编码很陌生,谁能告诉我如何解决这个问题?非常感谢.
推荐答案
我用这个解决了我的错误."%SystemRoot%system32;"在 PATH 变量中.
I solved my error using this. "%SystemRoot%system32;" in the PATH variable.
这篇关于“错误:spawn cmd ENOENT"在世博会启动项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文