-
Notifications
You must be signed in to change notification settings - Fork 12
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
Any way to prevent using sudo
?
#14
Comments
You mean with the CLI? You should never install global packages with sudo to begin with. https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md After that, you shouldn't be forced to use sudo when using the cli. |
I think |
Did anybody meet with the problem when installing the packages? npm WARN enoent ENOENT: no such file or directory, open '/home/achao/package.json' #ubuntu 18.04.1 LTS |
Sudo is not required on Linux if you add |
I'm facing similar issue 18 . |
Is there any way to prevent using
sudo
every time I run this thing? It can be very harmful.The text was updated successfully, but these errors were encountered: