小编ham*_*ree的帖子

npm 错误!代码 ENOTEMPTY npm 错误!系统调用重命名

当我尝试初始化反应本机项目时,我收到此错误。有谁知道如何解决这个问题请帮忙

我正在使用苹果电脑


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

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/codelanticdeveloper/.npm/_logs/2022-02-16T15_54_46_715Z-debug-0.log

Run Code Online (Sandbox Code Playgroud)

npm react-native

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

npm ×1

react-native ×1