[英]Error: Cannot find module 'C:\Users\senyo\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js'
Error: Cannot find module 'C:\Users\senyo\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)
at executeUserCode (internal/bootstrap/node.js:499:15)
at startMainThreadExecution (internal/bootstrap/node.js:436:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! argon-react-native@1.3.0 start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the argon-react-native@1.3.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\senyo\AppData\Roaming\npm-cache\_logs\2019-11-20T07_36_37_359Z-debug.log
Try尝试
npm install -g expo-cli --force
this works for me这对我有用
for me, the node_modules file was missing.对我来说, node_modules 文件丢失了。 check if it is there.
检查它是否在那里。 To solve the problem I simply went to the control panel->uninstall apps->nodejs(right-click on nodejs)-> select repair.
为了解决这个问题,我只是去控制面板->卸载应用程序->nodejs(右键单击nodejs)-> select修复。 My node_modules file was back.
我的 node_modules 文件又回来了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.