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 ERR! the command again as root/Administrator #16

Closed
lencx opened this issue Jul 24, 2021 · 0 comments
Closed

npm ERR! the command again as root/Administrator #16

lencx opened this issue Jul 24, 2021 · 0 comments
Labels
help Extra attention is needed v1 v1.x.x

Comments

@lencx
Copy link
Member

lencx commented Jul 24, 2021

image

Permissions you used when installing Node will be required when doing things like writing in your npm directory (npm link, npm install -g, etc.).

You probably ran node installation with root permissions, that's why the global package installation is asking you to be root.

NVM (Node Version Manager) allows you to install Node without root permissions and also allows you to install many versions of Node to play easily with them.. Perfect for development.

@lencx lencx added the help Extra attention is needed label Jul 24, 2021
@lencx lencx pinned this issue Jul 24, 2021
@lencx lencx closed this as completed Oct 2, 2021
@lencx lencx added the v1 v1.x.x label Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Extra attention is needed v1 v1.x.x
Projects
None yet
Development

No branches or pull requests

1 participant