首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我使用create-react-native-app时出错

我使用create-react-native-app时出错
EN

Stack Overflow用户
提问于 2019-09-27 11:13:51
回答 1查看 107关注 0票数 0

我想使用create- react-native -app myApp创建一个带有react-native的新项目,但我得到了一个类似以下的错误:

代码语言:javascript
复制
C:\Users\Septyan Rully Ekel P\Desktop>create-react-native-app myApp
┌─────────────────────────────────────────────────────────────┐
│                                                             │
│   There is a new version of expo-cli available (3.1.2).     │
│   You are currently using expo-cli 3.0.6                    │
│   Run `npm install -g expo-cli` to get the latest version   │
│                                                             │
└─────────────────────────────────────────────────────────────┘
? Choose a template: expo-template-blank
√ Please enter a few initial configuration values.
  Read more: https://docs.expo.io/versions/latest/workflow/configuration/ · 100% completed
Extracting project files...
Customizing project...
Installing dependencies...
npm WARN deprecated deep-assign@3.0.0: Check out `lodash.merge` or `merge-options` instead.
npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm ERR! Unexpected end of JSON input while parsing near '...ls":"^7.0.0","@babel/'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Septyan Rully Ekel P\AppData\Roaming\npm-cache\_logs\2019-09-27T03_01_42_460Z-debug.log
npm exited with non-zero code: 1
Set EXPO_DEBUG=true in your env to view the stack trace.
EN

回答 1

Stack Overflow用户

发布于 2019-09-27 11:30:33

运行npm cache clean --force并尝试再次创建项目

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58127332

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档