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: permissions error #1518

Closed
prometheus94 opened this issue Sep 29, 2018 · 2 comments
Closed

npm install: permissions error #1518

prometheus94 opened this issue Sep 29, 2018 · 2 comments

Comments

@prometheus94
Copy link

@prometheus94 prometheus94 commented Sep 29, 2018

What version of WebTorrent?

current

What operating system and Node.js version?

OS : Fedora 28 (Workstation)
Node.js : 8.12

What did you expect to happen?

expected to install webtorrent via npm install webtorrent-cli -g

What actually happened?

no@name ~ $ npm install webtorrent-cli -g
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! path /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR! stack: 'Error: EACCES: permission denied, access '/usr/lib/node_modules'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/lib/node_modules' }
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 (though this is not recommended).

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Sep 29, 2018

You don't have permission to write to /usr/lib/node_modules. Try with sudo

@prometheus94

This comment has been minimized.

Copy link
Author

@prometheus94 prometheus94 commented Sep 29, 2018

Thank you!
Solved

@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.