繁体   English   中英

无法使用 npx react-native init AppName 安装本机反应

[英]can't install react native using npx react-native init AppName

我尝试初始化反应本机应用程序,但总是使用npx react-native init AppName得到错误。

Need to install the following packages:
  react-native@0.69.0
Ok to proceed? (y) y
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/risman/.npm/_npx/7930a8670f922cdb/node_modules/react-native
npm ERR! dest /Users/risman/.npm/_npx/7930a8670f922cdb/node_modules/.react-native-tr3sR9QU
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/risman/.npm/_npx/7930a8670f922cdb/node_modules/react-native' -> '/Users/risman/.npm/_npx/7930a8670f922cdb/node_modules/.react-native-tr3sR9QU'

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/risman/.npm/_logs/2022-06-27T14_07_36_253Z-debug-0.log

错误日志: https://drive.google.com/file/d/1YEZGNVLf5aJzGzDoQaQWPzNi1NAUPezj/view?usp=sharing

照他们说的做,将/Users/risman/.npm/_npx/7930a8670f922cdb/node_modules/react-native重命名为/Users/risman/.npm/_npx/7930a8670f922cdb/node_modules/.react-native-tr3sR9QU

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM