在firstApp@0.1.0弹出脚本react-native-scripts弹出失败

时间:2018-01-09 17:31:30

标签: node.js react-native npm

我正在关注在线教程并执行以下步骤:

  
      
  1. npm install -g create-react-native-app
  2.   
  3. create-react-native-app firstApp
  4.   
  5. npm run eject
  6.   

但弹出步骤给了我一个错误。

我尝试过多个节点/ npm版本,例如8.9.4/5.6.0(这会在第一步中给出消息,说我应该使用npm 4,因为不支持npm 5,然后我使用了7.10.1/4.2.0,在这个版本中我收到以下错误:

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "eject"
npm ERR! node v7.10.1
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firstApp@0.1.0 eject: `react-native-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the firstApp@0.1.0 eject script 'react-native-scripts eject'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the firstApp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     react-native-scripts eject
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs firstApp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls firstApp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

0 个答案:

没有答案