npm安装spm出错,请问是什么问题
答案:1 悬赏:80 手机版
解决时间 2021-03-20 11:02
- 提问者网友:城市野鹿
- 2021-03-19 12:34
npm安装spm出错,请问是什么问题
最佳答案
- 五星知识达人网友:人類模型
- 2021-03-19 13:44
npm install spm -g npm http GET https://registry.npmjs.org/spm npm
http 200 https://registry.npmjs.org/spm npm http GET
https://registry.npmjs.org/spm/-/spm-0.4.1.tgz npm http 200
https://registry.npmjs.org/spm/-/spm-0.4.1.tgz
npm ERR! Error: EACCES, mkdir ‘/usr/local/lib/node_modules/spm’ npm
ERR! npm ERR! Please try running this command again as
root/Administrator. npm ERR! npm ERR! System Darwin 12.2.0 npm ERR!
command “node” “/usr/local/bin/npm” “install” “spm” “-g” npm ERR! cwd
/Users/nameng npm ERR! node -v v0.6.15 npm ERR! npm -v 1.1.16 npm ERR!
path /usr/local/lib/node_modules/spm npm ERR! fstream_path
/usr/local/lib/node_modules/spm npm ERR! fstream_type Directory npm
ERR! fstream_class DirWriter npm ERR! code EACCES npm ERR! message
EACCES, mkdir ‘/usr/local/lib/node_modules/spm’ npm ERR! errno {} npm
ERR! fstream_stack
/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack Object.oncomplete
(/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:42:17)
npm ERR! npm ERR! Additional logging details can be found in: npm
ERR! /Users/nameng/npm-debug.log npm not ok
8 回复
http 200 https://registry.npmjs.org/spm npm http GET
https://registry.npmjs.org/spm/-/spm-0.4.1.tgz npm http 200
https://registry.npmjs.org/spm/-/spm-0.4.1.tgz
npm ERR! Error: EACCES, mkdir ‘/usr/local/lib/node_modules/spm’ npm
ERR! npm ERR! Please try running this command again as
root/Administrator. npm ERR! npm ERR! System Darwin 12.2.0 npm ERR!
command “node” “/usr/local/bin/npm” “install” “spm” “-g” npm ERR! cwd
/Users/nameng npm ERR! node -v v0.6.15 npm ERR! npm -v 1.1.16 npm ERR!
path /usr/local/lib/node_modules/spm npm ERR! fstream_path
/usr/local/lib/node_modules/spm npm ERR! fstream_type Directory npm
ERR! fstream_class DirWriter npm ERR! code EACCES npm ERR! message
EACCES, mkdir ‘/usr/local/lib/node_modules/spm’ npm ERR! errno {} npm
ERR! fstream_stack
/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack Object.oncomplete
(/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:42:17)
npm ERR! npm ERR! Additional logging details can be found in: npm
ERR! /Users/nameng/npm-debug.log npm not ok
8 回复
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯