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

nodejs LTS v6.10.2 Windows installs give npm version 1.4.2 instead of 3.10.10 #12237

Closed
dennis-bicker opened this issue Apr 5, 2017 · 2 comments
Labels
install Issues and PRs related to the installers. npm Issues and PRs related to the npm client dependency or the npm registry. windows Issues and PRs related to the Windows platform.

Comments

@dennis-bicker
Copy link

I have tried uninstalling and installing nodejs LTS v6.10.2 on Windows multiple ways but I keep getting ((npm version 1.4.3)), even though it says it should be 3.10.10.
I have used the Windows installer (.msi), trying both 32 bit and 64 bit (my machine is 64 bit).
I have also tried installing using the Windows binary (.zip).
I have not tried the build (because of its additional requirements).
"NPM -VERSION" reports 1.4.3.
"Where NPM" reports the correctly installed location as "C:\Program Files (x86)\nodejs\npm.cmd" after the 32 bit install and "C:\Program Files\nodejs\npm.cmd" after the 64 bit install.

@mscdex mscdex added install Issues and PRs related to the installers. v6.x windows Issues and PRs related to the Windows platform. npm Issues and PRs related to the npm client dependency or the npm registry. labels Apr 5, 2017
@ghost
Copy link

ghost commented Apr 6, 2017

Maybe the user authorization is the main reason?

@dennis-bicker
Copy link
Author

I found it.

The .npmrc file (in c:\users{userid}) contained a PREFIX line pointing at an older version of node/npm in a Rational Application Developer (Eclipse) environment. And it was surviving my uninstall/reinstall .

Once I deleted the line, then I started getting the new version.

prefix = C:\Program Files\IBM\SDP\cordova_cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Issues and PRs related to the installers. npm Issues and PRs related to the npm client dependency or the npm registry. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

2 participants