报错:npm ERR! code EPERM npm ERR! syscall open npm ERR! path E:\softwareDevelopment\node\node_cache...

在vscode中执行npm install安装依赖包报错:
npm ERR! path E:\softwareDevelopment\node\node_cache\_cacache\tmp\ed3c9209

npm ERR! errno -4048

npm ERR! Error: EPERM: operation not permitted, open 'E:\softwareDevelopment\node\node_cache\_cacache\tmp\ed3c9209'

npm ERR!  [Error: EPERM: operation not permitted, open 'E:\softwareDevelopment\node\node_cache\_cacache\tmp\ed3c9209'] {

npm ERR!  errno: -4048,

npm ERR!  code: 'EPERM',

npm ERR!  syscall: 'open',

npm ERR!  path: 'E:\\softwareDevelopment\\node\\node_cache\\_cacache\\tmp\\ed3c9209'

npm ERR! }

npm ERR!

npm ERR! The operation was rejected by your operating system.

npm ERR! It's possible that the file was already in use (by a text editor or antivirus),

npm ERR! or that you lack permissions to access it.

npm ERR!

npm ERR! If you believe this might be a permissions issue, please double-check the

npm ERR! permissions of the file and its containing directories, or try running

npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:




明显是vscode没有执行cmd命令权限

网上一堆瞎整,删除什么.npmc文件。

解决方案:直接管理员身份运行cmd,到该项目目录下执行 npm install 安装依赖即可

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容