Skip to content

install nodejs 4.2 with newer npm #3350

Description

@linquize

I manually upgrade npm to 3.3.4 which is newer than the one nodejs 4.2 ships (2.14.7).
Will the new npm be preserved or overwritten during upgrade nodejs?
I use Windows 7 64-bit MSI to install nodejs.

Activity

  1. added
    windowsIssues and PRs related to the Windows platform.
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    questionIssues asking questions about Node.js.
    npmIssues and PRs related to the npm client dependency or the npm registry.
    and removed
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    on Oct 13, 2015
  2. Fishrock123 commented on Oct 13, 2015

    @Fishrock123
    Contributor

    Probably overwritten, I think?

    There was discussion about having the installer have an option to not install npm, but I'm not sure where it went.

  3. Trott commented on Oct 13, 2015

    @Trott
    Member

    You can try opening an issue in the help repo: https://github.com/nodejs/help/issues

    The answer may depend on how it was previously installed etc., but I think it will overwrite npm. However, updating it again should be as easy as npm install -g npm@3.3.4.

  4. kenany commented on Oct 13, 2015

    @kenany
    Contributor

    By default, npm is installed alongside node in C:\Program Files (x86)\nodejs. npm's globally installed packages (including npm if you do npm install -g npm) are stored separately in a user-specific directory (which is currently C:\Users\<username>\AppData\Roaming\npm). Thus, it is possible to end up with two different versions of npm. I believe the msi installer puts C:\Program Files (x86)\nodejs before C:\Users\<username>\AppData\Roaming\npm in your PATH, so if you run npm --version you will get the version of npm that came with node (this has confused many Windows over at the npm issue tracker, so much so that I usually just point them to this guide).

  5. jasnell commented on Oct 14, 2015

    @jasnell
    Member

    Closing. Not an actual issue ;-). @linquize ... no worries, but just for future reference, questions like this are better suited for http://github.com/nodejs/help ;-)

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

    npmIssues and PRs related to the npm client dependency or the npm registry.questionIssues asking questions about Node.js.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions