nodejs环境都有,安装fis报错?何解? 10
C:\Users\xp015800>npminstall-gfisnpmERR!Error:Attempttounlockfis,whichhasn'tbeenlocke...
C:\Users\xp015800>npm install -g fis
npm ERR! Error: Attempt to unlock fis, which hasn't been locked
npm ERR! at unlock (C:\Program Files\nodejs\node_modules\npm\lib\utils\locke
r.js:44:11)
npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\lib\cache\add-local
.js:30:5)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\cache\add-local.js:
47:20
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\utils\locker.js:30:
7
npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\lockfi
le\lockfile.js:149:38)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\lockfile\l
ockfile.js:177:38
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "fis"
npm ERR! cwd C:\Users\xp015800
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\xp015800\npm-debug.log
npm ERR! not ok code 0 展开
npm ERR! Error: Attempt to unlock fis, which hasn't been locked
npm ERR! at unlock (C:\Program Files\nodejs\node_modules\npm\lib\utils\locke
r.js:44:11)
npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\lib\cache\add-local
.js:30:5)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\cache\add-local.js:
47:20
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\utils\locker.js:30:
7
npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\lockfi
le\lockfile.js:149:38)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\lockfile\l
ockfile.js:177:38
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "fis"
npm ERR! cwd C:\Users\xp015800
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\xp015800\npm-debug.log
npm ERR! not ok code 0 展开
3个回答
展开全部
我也遇到了一样的问题,似乎是权限问题。你可以先试试用管理员权限打开console,应该就能安装了。
或者,用这两个,不过似乎是linux环境下才行
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
或者,用这两个,不过似乎是linux环境下才行
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询