Skip to content

Would it be possible to isolate global packages? #217

Closed

Description

@fl0w

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

Activity

  1. drschwabe commented on Apr 30, 2015

    @drschwabe

    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)

  2. adamreisnz commented on Dec 30, 2018

    @adamreisnz

    This appears to be already the case

  3. shadowspawn commented on Dec 31, 2018

    @shadowspawn
    Collaborator

    This appears to be already the case

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

  4. adamreisnz commented on Dec 31, 2018

    @adamreisnz

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

  5. shadowspawn commented on Mar 22, 2019

    @shadowspawn
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions