The Wayback Machine - http://web.archive.org/web/20201023140746/https://github.com/nodejs/node/issues/35673
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

problem with installer on windows #35673

Open
rekna1 opened this issue Oct 16, 2020 · 0 comments
Open

problem with installer on windows #35673

rekna1 opened this issue Oct 16, 2020 · 0 comments
Labels

Comments

@rekna1
Copy link

@rekna1 rekna1 commented Oct 16, 2020

  • nodejs 12.19.0
  • npm version 6.4.1
  • Windows10
  • 64bit:

What steps will reproduce the bug?

installing latest version of nodejs 12.19.0 when having npm version 6.4.1 in %APPDATA% will get you in a situation where you can not update npm anymore.
npm install npm@latest will report that npm version 6.4.1 is not supported by the current version of nodejs.
although nodejs installs a more recent version of npm in c:\program files\nodejs, it will still use the version from %APPDATA%

  • tried to remove %appdata%/npm from PATH, but even then npm was run from %APPDATA%
  • the only solution was to examine what command was run when executing npm.cmd (apparently node.exe node-cli.js) and explicitity running command with full paths:
    "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" install npm@latest

What is the expected behavior?

I would expect to be able to update npm at any time , perhaps by providing an option to run npm from nodejs folder...

What do you see instead?

npm 6.4.1 is incompatible with nodejs 12.19.0

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.