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

使用'create-react-native-app‘时出错
EN

Stack Overflow用户
提问于 2017-05-26 18:47:00
回答 1查看 1.2K关注 0票数 3

我试图在我的Windows系统的node.js终端中使用create-react-native-app命令创建一个新的React Native应用程序。我得到了以下终端错误:

代码语言:javascript
复制
D:\project>create-react-native-app crna
Creating a new React Native app in D:\project\crna.

Installing packages. This might take a couple minutes.
Installing react-native-scripts...

npm WARN deprecated fs-promise@1.0.0: Use mz or fs-extra^3.0 with Promise Suppor
t
npm WARN deprecated @exponent/spawn-async@1.2.8: Please switch to @expo/spawn-as
ync, the new name of this package. It's the same code with our new name.
npm ERR! shasum check failed for C:\Users\ui-admin\AppData\Local\Temp\npm-3204-a
eacedd1\registry.npmjs.org\_40exponent\ngrok\-\ngrok-2.2.7.tgz
npm ERR! Expected: 37fe66f922b1003da2a78c66b7d4d3bc9313e423
npm ERR! Actual:   d134060eb730b880da06d5c040ca933f6a75b613
npm ERR! From:     https://registry.npmjs.org/@exponent/ngrok/-/ngrok-2.2.7.tgz

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ui-admin\AppData\Roaming\npm-cache\_logs\2017-05-26T09_36_
04_379Z-debug.log
`npm install --save-dev --save-exact react-native-scripts` failed

有没有人遇到过这个错误或者修复了它?

EN

回答 1

Stack Overflow用户

发布于 2017-06-13 08:57:36

我得到了同样的错误,尽管在RubyMine中,它提供了react-native还不能与npm 5一起工作的响应。它说你可以恢复到npm 4,也可以在这里随意记录一个问题:https://github.com/npm/npm/issues/16991

我认为你最好的办法就是恢复并等待它结束!

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

https://stackoverflow.com/questions/44199614

复制
相关文章

相似问题

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