gpt4 book ai didi

node.js - npx react-native init AwesomeProject 错误 enolocal

转载 作者:行者123 更新时间:2023-12-04 09:32:07 26 4
gpt4 key购买 nike

我在尝试使用 npx npx 创建 React Native 应用程序时出错

react-native init AwesomeProject


就像文档说的那样。但我收到一条错误消息

npm ERR! code ENOLOCAL npm ERR! Could not install from"Indigo\AppData\Roaming\npm-cache_npx\3192" as it does not contain apackage.json file.

npm ERR! A complete log of this run can be found in:C:\Users\DurioIndigo\AppData\Roaming\npm-cache_logs\2020-07-08T08_20_54_191Z-debug.logInstall for react-native@latest failed with code 1


我知道它不是来自 npx,因为我尝试使用 npx 创建 React 应用程序并且它有效。只有我有这个吗?

最佳答案

我让你试试 npm cache clear如果使用 Windows,您可以运行命令 npx react-native init AwesomeProjectCommand promt使用 Run as Administrator

关于node.js - npx react-native init AwesomeProject 错误 enolocal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62790755/

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