由于nodejs安装,我尝试npm时收到此错误。我尽我所能,但仍然可以解决。
你可以看到我正在使用linuxbrew,我认为这会有所帮助,但仍然没办法。这里有什么建议吗?
npm ERR! Linux 4.4.0-43-generic
npm ERR! argv "/home/ericel/.linuxbrew/Cellar/node/6.7.0/bin/node" "/home/ericel/.linuxbrew/bin/npm" "cache" "clean"
npm ERR! node v6.7.0
npm ERR! npm v3.10.7
npm ERR! path /home/ericel/.npm/@angular/common
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall rmdir
npm ERR! Error: EACCES: permission denied, rmdir '/home/ericel/.npm/@angular/common'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, rmdir '/home/ericel/.npm/@angular/common'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rmdir',
npm ERR! path: '/home/ericel/.npm/@angular/common' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/ericel/npm-debug.log
答案 0 :(得分:0)
它有permission denied
个问题。尝试使用sudo
或root用户运行该安装。