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

Would it be possible to isolate global packages? #217

Closed
fl0w opened this issue Jan 15, 2015 · 5 comments
Closed

Would it be possible to isolate global packages? #217

fl0w opened this issue Jan 15, 2015 · 5 comments

Comments

@fl0w
Copy link

@fl0w fl0w commented Jan 15, 2015

Not sure if this is of concern really. I've dealt with virtualenv previously and I loved setting up a specific environment with isolated global packages. Would this be of interest to n or is this out of scope? I'd imagine a feature like this would involve a number of breaking changes - a separate fork or even an entirely separate package.

My reasoning behind this feature/change is that with the introduction of io.js, it's of interest to me to have separate global versions installed of the same package depending on what environment I'm currently in.

I guess this ties in a bit into #212

@drschwabe
Copy link

@drschwabe drschwabe commented Apr 30, 2015

Maybe whenever you npm install -g myglobalmodule n can somehow override the install path to:

n/versions/node/0.xx.x/node_modules/myglobalmodule

(and similar pattern for iojs)

Loading

@adamreisnz
Copy link

@adamreisnz adamreisnz commented Dec 30, 2018

This appears to be already the case

Loading

@shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Dec 31, 2018

This appears to be already the case

No, global installs have not been separated by node version.

Loading

@adamreisnz
Copy link

@adamreisnz adamreisnz commented Dec 31, 2018

Interestingly enough that's where my globally installed modules ended up in, see also #546. I realise now this was not the intended behaviour.

Loading

@shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Mar 22, 2019

A reasonable question @fl0w . Isolating global packages would be a big change and unlikely to happen in n. If that is an important feature for you, I suggest you look at one of the other node version managers which support isolated global packages, such as nvm.

Feel free to open a new issue if it comes up again, with new information and renewed interest.

Thank you for your contributions.

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants