Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装Fis时报错? #74

Open
yidongwuxian opened this issue Aug 16, 2015 · 3 comments
Open

安装Fis时报错? #74

yidongwuxian opened this issue Aug 16, 2015 · 3 comments

Comments

@yidongwuxian
Copy link

~ npm install --registry=http://r.cnpmjs.org -g fis-plus
npm http GET http://r.cnpmjs.org/fis-plus
npm http 200 http://r.cnpmjs.org/fis-plus
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/fis-plus'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/fis-plus']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/fis-plus',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/fis-plus',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 14.3.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--registry=http://r.cnpmjs.org" "-g" "fis-plus"
npm ERR! cwd /Users/xy
npm ERR! node -v v0.10.1
npm ERR! npm -v 1.2.15
npm ERR! path /usr/local/lib/node_modules/fis-plus
npm ERR! fstream_path /usr/local/lib/node_modules/fis-plus
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/fis-plus'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/xy/npm-debug.log
npm ERR! not ok code 0
➜ ~

@oxUnd
Copy link
Contributor

oxUnd commented Aug 16, 2015

EACCES

没权限的意思,请给予相关目录权限,谢谢!

@yidongwuxian
Copy link
Author

谢谢,上面的问题解决了,但又遇到一个问题无法安装了
qq20150817-1

@oxUnd
Copy link
Contributor

oxUnd commented Aug 17, 2015

sudo rm -rf ~/.npm 

后再试试,NPM 安装问题请参考 fex-team/fis#565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants