无法启动本机应用程序

时间:2017-11-12 16:38:22

标签: android ios node.js react-native create-react-native-app

伙计我被困在这里我已经降级了我的节点和npm以运行应用程序

目前我的节点版本是8.4.0,npm是4.6.1 我做的步骤是

  1. create-react-native-app SampleApp
  2. cd SampleApp
  3. npm run ios
  4. 结果应用无效

    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
    

    执行sudo chmod -R 777 ~/.expo/并在我的macbook中安装expo.io应用程序后,它会像thi一样陷入困境。你可以看到下面的图片

    enter image description here

0 个答案:

没有答案