0

我正在使用 react-native 版本 0.59.3,当我尝试安装 react-native-popup-menu 版本 0.59.3 时出现此错误:

npm ERR! path c:\Users\...\node_modules\react-native
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'c:\Users\...\node_modules\react-native' -> 'c:\Users\...\node_modules\.react-native.DELETE'
4

1 回答 1

0

我刚刚停止运行项目(或重新启动 PC)并以管理员 cmd 运行,然后安装 react-native-popup-menu 0.15.6

这是工作

于 2019-04-30T11:32:41.740 回答