Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Is it still safe to run npm as root? #17614

Closed
varnav opened this issue Jul 5, 2017 · 3 comments
Closed

Is it still safe to run npm as root? #17614

varnav opened this issue Jul 5, 2017 · 3 comments

Comments

@varnav
Copy link

varnav commented Jul 5, 2017

I've found some old issue (#294), and looks like that in version 0.3.0 some security mechanisms were implemented, that make npm to be safe (or maybe even safer) if run as root.
Is it still true today? Is running as root safe? Is it recommended?

@zkat zkat added the support label Jul 6, 2017
@Nicholaiii
Copy link

Running npm as root is in my opinion always undesirable. Same goes even more for node, which in some cases have to be run as root, if installed as root.

@varnav
Copy link
Author

varnav commented Jul 7, 2017

@npm-robot
Copy link

We're closing this support issue as it has gone three days without activity. The npm CLI team itself does not provide support via this issue tracker, but we are happy when users help each other here. In our experience once a support issue goes dormant it's unlikely to get further activity. If you're still having problems, you may be better served by joining package.community and asking your question there.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants