无SUDO的NPM抛出错误我只是通过nodejs.org上的包安装了节点和NPM,每当我试图搜索或安装NPM时,它都会抛出以下错误,除非我需要执行命令。我有预感这是权限问题吗?我已经是管理员了。npm ERR! Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json'npm ERR! { [Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json']npm ERR! errno: 3,npm ERR! code: 'EACCES',npm ERR! path: '/Users/chietala/.npm/-/all/.cache.json' }npm ERR! npm ERR! Please try running this command again as root/Administrator.npm ERR! System Darwin 12.2.0npm ERR! command "node" "/usr/local/bin/npm" "search" "bower"npm ERR! cwd /Users/chietalanpm ERR! node -v v0.10.4npm ERR! npm -v 1.2.18npm ERR! path /Users/chietala/.npm/-/all/.cache.jsonnpm ERR! code EACCESnpm ERR! errno 3npm ERR! stack Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json'npm ERR! npm ERR! Additional logging details can be found in:npm ERR! /Users/chietala/npm-debug.lognpm ERR! not ok code 0
- 3 回答
- 0 关注
- 584 浏览
添加回答
举报
0/150
提交
取消