gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 05:14:40 25 4
gpt4 key购买 nike

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

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

有人遇到过这个错误或修复过它吗?

最佳答案

尽管在 RubyMine 中,我遇到了同样的错误,它提供的响应是 react-native 还不适用于 npm 5。它说您可以恢复到 npm 4 或随时在此处记录问题:https://github.com/npm/npm/issues/16991

我认为您最好的选择是恢复并等待它结束!

关于react-native - 使用 'create-react-native-app'时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44199614/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com