npm ERR! Linux 4.4.0-43-generic

npm ERR! Linux 4.4.0-43-generic

本文关键字:0-43-generic Linux ERR npm      更新时间:2023-09-26

当我尝试npm由于nodejs安装时,我得到这个错误。我已经做了我能做的,但还是做不出来。

正如你可以看到我使用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

permission denied问题。尝试使用sudo或root用户运行该安装。