npm install错误#7884 - npm WARN锁定错误:EACCES

时间:2015-10-07 09:00:24

标签: npm

在concat-map上尝试npm install我得到了这个错误我已经尝试添加sudo

npm install concat-map
npm WARN locking Error: EACCES, open '/Users/mercadotecnia/.npm/_locks/concat-map-a127112b4f6ee84c.lock'
npm WARN locking  /Users/mercadotecnia/.npm/_locks/concat-map-a127112b4f6ee84c.lock failed { [Error: EACCES, open '/Users/mercadotecnia/.npm/_locks/concat-map-a127112b4f6ee84c.lock']
npm WARN locking   errno: 3,
npm WARN locking   code: 'EACCES',
npm WARN locking   path: '/Users/mercadotecnia/.npm/_locks/concat-map-a127112b4f6ee84c.lock' }
npm ERR! Darwin 11.4.2
npm ERR! argv "node" "/usr/local/bin/npm" "install" "concat-map"
npm ERR! node v0.10.35
npm ERR! npm  v2.7.0

npm ERR! Attempt to unlock /Users/mercadotecnia/Desktop/Sitios/bill/node_modules/concat-map, which hasn't been locked
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

1 个答案:

答案 0 :(得分:0)

在终端中,执行以下操作

  

$ sudo chown -R $(whoami)&#34; $ HOME / .npm&#34;