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

npm install -g jasmine #122

Closed
dwiehoff opened this issue Jan 10, 2021 · 4 comments
Closed

npm install -g jasmine #122

dwiehoff opened this issue Jan 10, 2021 · 4 comments

Comments

@dwiehoff
Copy link

npm install -g jasmine leads to the following errors for me:

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

Should it be run as sudo?

@xandora
Copy link
Member

xandora commented Jan 10, 2021 via email

@xandora
Copy link
Member

xandora commented Jan 10, 2021

Are you on a Mac by any chance?

@xandora
Copy link
Member

xandora commented Jan 10, 2021

Anyway, give this thread a look for a few possible answers:

https://stackoverflow.com/questions/54802330/missing-write-access-in-mac-to-usr-local-lib-node-modules/55172709

@dwiehoff
Copy link
Author

Anyway, give this thread a look for a few possible answers:

https://stackoverflow.com/questions/54802330/missing-write-access-in-mac-to-usr-local-lib-node-modules/55172709

No idea what I did there but the first answer did the trick 👍

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