无法创建React Native项目

时间:2018-06-27 14:30:45

标签: javascript react-native

我正在尝试创建一个带有本机响应的项目​​,但是我的问题是我运行订单时

create-react-native-app AwesomeProject

我遇到几个错误

npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump
npm ERR! Unexpected end of JSON input while parsing near '...aps-1.0.0-alpha.4.tgz'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pc/.npm/_logs/2018-06-27T14_25_11_764Z-debug.log
Failed to install

我尝试了许多解决方案但没有成功 我有npm 6.1.0和节点8.0.0

1 个答案:

答案 0 :(得分:0)

您是否遵循CRNA官方页面上的所有说明:https://github.com/react-community/create-react-native-app

即:

$ npm install -g create-react-native-app
$ create-react-native-app AwesomeProject
$ cd my-app/
$ npm start