npm -v 报错:Error: EPERM: operation not permitted

说明:之前安装过一次,卸载重装后,在cmd中输入node -v正常,但输入npm -v报错

cmd显示:Error: EPERM: operation not permitted…

解决方案:

删除.npmrc文件,在C盘用户目录下

在这里插入图片描述
再次在cmd中敲入npm -v
在这里插入图片描述

发布了42 篇原创文章 · 获赞 38 · 访问量 9787

猜你喜欢

转载自blog.csdn.net/qwe122343/article/details/104408681