npm安装报错Error: EPERM: operation not permitted解决方案
生活随笔
收集整理的這篇文章主要介紹了
npm安装报错Error: EPERM: operation not permitted解决方案
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
電腦重裝系統后重新配置環境安裝node后,npm命令安裝報錯?Error: EPERM: operation not permitted
npm ERR! code EPERM npm ERR! syscall mkdir npm ERR! path C:\Program Files\nodejs\node_cache\_cacache npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_cache\_cacache' npm ERR! [OperationalError: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_cache\_cacache'] { npm ERR! cause: [Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_cache\_cacache'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'mkdir', npm ERR! path: 'C:\\Program Files\\nodejs\\node_cache\\_cacache' npm ERR! }, npm ERR! isOperational: true, npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'mkdir', npm ERR! path: 'C:\\Program Files\\nodejs\\node_cache\\_cacache' 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.解決方案:刪除當前用戶目錄下面的.npmrc文件重新安裝即可
總結
以上是生活随笔為你收集整理的npm安装报错Error: EPERM: operation not permitted解决方案的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 消息称特斯拉将商讨在印度建厂,生产 2.
- 下一篇: 因无法达成全球范围内合作,苹果不会竞标英