Error: EPERM: operation not permitted, mkdir 'D:\Program Files\VSCode_WorkBase\ITHeiMa\node_modules' npm ERR! [OperationalError: EPERM: operation not permitted, mkdir 'D:\Program Fil

1.错误场景:

在使用npm install 安装插件出现错误
image

2.失败原因:

权限不足

3.解决方法:

将Node.js的安装目录设置成完全控制。
image

如果设置了在VSCode还是无法下载,就以管理员的身份进入CMD后。找到项目的根目录,运行npm install

image
image

成功
image

posted @ 2022-08-21 16:40  Primary丶  阅读(692)  评论(0编辑  收藏  举报