[英]can't install react native using npx react-native init AppName
I try to initialize react native app but always got the error 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
Error log: https://drive.google.com/file/d/1YEZGNVLf5aJzGzDoQaQWPzNi1NAUPezj/view?usp=sharing错误日志: https://drive.google.com/file/d/1YEZGNVLf5aJzGzDoQaQWPzNi1NAUPezj/view?usp=sharing
Do what they tell you, rename /Users/risman/.npm/_npx/7930a8670f922cdb/node_modules/react-native
to /Users/risman/.npm/_npx/7930a8670f922cdb/node_modules/.react-native-tr3sR9QU
照他们说的做,将
/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.