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

how to fix 'npm link npm --local' #66

Open
wuchang1123 opened this issue Apr 9, 2013 · 4 comments
Open

how to fix 'npm link npm --local' #66

wuchang1123 opened this issue Apr 9, 2013 · 4 comments

Comments

@wuchang1123
Copy link

[email protected] install /usr/local/lib/node_modules/anvil.js
npm link npm --local

npm WARN prefer global [email protected] should be installed with -g
npm ERR! Error: EACCES, symlink '../npm/bin/npm-cli.js'
npm ERR! { [Error: EACCES, symlink '../npm/bin/npm-cli.js'] errno: 3, code: 'EACCES', path: '../npm/bin/npm-cli.js' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 12.3.0
npm ERR! command "node" "/usr/local/bin/npm" "link" "npm" "--local"
npm ERR! cwd /usr/local/lib/node_modules/anvil.js
npm ERR! node -v v0.8.4
npm ERR! npm -v 1.1.45
npm ERR! path ../npm/bin/npm-cli.js
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, symlink '../npm/bin/npm-cli.js'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/lib/node_modules/anvil.js/npm-debug.log
npm ERR! not ok code 0
npm ERR! [email protected] install: npm link npm --local
npm ERR! sh "-c" "npm link npm --local" failed with 3
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the anvil.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm link npm --local
npm ERR! You can get their info via:
npm ERR! npm owner ls anvil.js
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "anvil.js" "-g"
npm ERR! cwd /Users/chinhai
npm ERR! node -v v0.8.4
npm ERR! npm -v 1.1.45
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/chinhai/npm-debug.log
npm ERR! not ok code 0

@dcneiner
Copy link
Contributor

@wuchang1123 Was your version of node installed with homebrew? I think there are some file permission issues that come up with the homebrew installed node. I believe when node is installed via nvm there is not this problem. I don't know of any other work arounds, but you see this line indicates a permissions issue.

npm ERR! Please try running this command again as root/Administrator.

@eliperelman
Copy link
Contributor

Please see the end of #45 for some tips that might work for you.

@dcneiner
Copy link
Contributor

Awesome @eliperelman

@wuchang1123
Copy link
Author

@dcneiner @eliperelman,thanks all. i will try later.

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

3 participants