【发布时间】:2020-03-15 20:42:00
【问题描述】:
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
【问题讨论】:
-
你是否在
package.json中安装了所有依赖项并使用了npm install? -
是的,我确实安装了它们
-
也许你应该修改你的
package.json直接从node_modules\expo-cli\bin\expo.js运行,除非你想用npm install -g expo-cli全局安装expo-cli
标签: node.js reactjs react-native npm expo