npm install express -g出錯

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "-g"
npm ERR! node v5.9.1
npm ERR! npm  v3.7.3
npm ERR! path C:\Program Files\nodejs\node_cache\_locks\staging-b7894baef02557b3.lock
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open

npm ERR! Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache\_locks\staging-b7894baef02557b3.lock'
npm ERR!     at Error (native)
npm ERR!  { [Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache\_locks\staging-b7894baef02557b3.lock']
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'open',
npm ERR!   path: 'C:\\Program Files\\nodejs\\node_cache\\_locks\\staging-b7894baef02557b3.lock' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:

以管理員的權限打開CMD既可,好比:node

在路徑下C:\Windows\System32express

右鍵cmd.exe 以管理員權限運行npm

相關文章
相關標籤/搜索