文章目錄
- 前言
- 報錯
- 解決方法
- 疫情加重了,帶好口罩,sincerely,end.
前言
??npm安裝失敗,顯示一堆ERR報錯,已解決,如有錯誤,請糾正,萬分感謝!
報錯

C:\>npm install -g @vue/cli
npm ERR! code EPERM
npm ERR! syscall open
npm ERR! path C:\Program Files\nodejs\node_cache\_cacache\tmp\af6aab31
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache\_cacache\tmp\af6aab31'
npm ERR! [OperationalError: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache\_cacache\tmp\af6aab31'] {
npm ERR! cause: [Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache\_cacache\tmp\af6aab31'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\\Program Files\\nodejs\\node_cache\\_cacache\\tmp\\af6aab31'
npm ERR! },
npm ERR! isOperational: true,
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\\Program Files\\nodejs\\node_cache\\_cacache\\tmp\\af6aab31'
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.
解決方法
查找了原因,原來是沒有開啟管理員權限,
惠普筆記本 win +X,再以管理員身份打開

在打開的視窗輸入安裝陳述句,即可成功!

疫情加重了,帶好口罩,sincerely,end.
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/247219.html
標籤:區塊鏈
