伙计们,我被困在这里了,为了运行应用程序,我已经降级了我的节点和 npm
目前我的节点版本是 8.4.0 而 npm 是 4.6.1 我做的步骤是
- create-react-native-app SampleApp
- cd SampleApp
- npm 运行 ios
结果应用程序无法正常工作
Purushothams-MacBook-Pro:SampleApp Purushotham$ npm run ios
SampleApp@0.1.0 ios /Users/Purushotham/Desktop/Demo/SampleApp
react-native-scripts ios
21:59:37: Starting packager...
21:59:39: Error starting packager: Error: EACCES: permission denied, open '/Users/Purushotham/Desktop/Demo/SampleApp/.expo/packager-info.json'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! SampleApp@0.1.0 ios: react-native-scripts ios
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the SampleApp@0.1.0 ios 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! /Users/Purushotham/.npm/_logs/2017-11-12T16_29_39_085Z-debug.log
在我的 macbook 中执行sudo chmod -R 777 ~/.expo/
和安装 expo.io 应用程序后,它会像这样卡住。你可以看到下面的图片