Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

npm config set prefix ~/npm -g #13

Closed
wants to merge 1 commit into from

Conversation

Fishrock123
Copy link

From https://medium.com/@adambretz/su-dont-npm-install-295376e2e5f8

It's great not having to use sudo to install anything. :)

Let me know if it's reasonable or let me know what a better form might be, and I can have a go at refining it.

@ljharb
Copy link

ljharb commented Jun 19, 2015

If you add this tip, please include a note that it will break nvm (nvm-sh/nvm#606)

@isaacs
Copy link
Contributor

isaacs commented Jun 21, 2015

Yeah, this is a bit more advanced than we're trying to target, and will break a lot of default setups.

It's a good idea, but I think it requires more subtlety than these tips will provide.

@isaacs isaacs closed this Jun 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants