npm运行报错operation not permitted

时间:2024-03-23 13:22:07

在使用npm下载axios时。报以下错误

× Install fail! Error: EPERM: operation not permitted, symlink 'D:\yiduo\program\BlockADM\blockAdm\node_modules\[email protected]@follow-redirects' -> 'D:\yiduo\program\BlockADM\blockAdm\node_modules\[email protected]@axios\node_modules\follow-redirects' Error: EPERM: operation not permitted, symlink 'D:\yiduo\program\BlockADM\blockAdm\node_modules\[email protected]@follow-redirects' -> 'D:\yiduo\program\BlockADM\blockAdm\node_modules\[email protected]@axios\node_modules\follow-redirects' npminstall version: 3.20.2 npminstall args: D:\yiduo\soft\node.exe C:\Users\hp\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --us

 主要就是说安装操作不允许,

然后查询了各种解决办法;

1:电脑打开cmd,以管理员身份运行

npm运行报错operation not permitted

2:重新下载node版本,具体可查看 node版本查看及更新方法

3:使用npm下载;

4: 忽略本次报错,重新cnpm下载;