You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Would it be possible to isolate global packages? #217
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.
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.
Activity
drschwabe commentedon Apr 30, 2015
Maybe whenever you
npm install -g myglobalmodulen can somehow override the install path to:(and similar pattern for iojs)
adamreisnz commentedon Dec 30, 2018
This appears to be already the case
shadowspawn commentedon Dec 31, 2018
No, global installs have not been separated by node version.
adamreisnz commentedon 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.
shadowspawn commentedon 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 asnvm.Feel free to open a new issue if it comes up again, with new information and renewed interest.
Thank you for your contributions.