nodists / nodist

Natural node.js and npm version manager for windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nodist can't find npm version 7.14.0

premedios opened this issue · comments

When I run nodist npm 7.14.0, it returns with Unhandled rejection {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}.

If I I run npm install -g npm@7.14.0, it complains about npm.cmd and suggests that I run the command with --force.. If I run the command with --force it works.

Yis i got the exact same error. Even when I try to install npm version 6.14.13 with the command: nodist npm 6.14.13. So I think there is something wrong with nodist and npm.

Yeah i too facing the same issue when i try this command nodist npm 6.14.12
getting this below error

npm 6.14.12
{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}.
Sorry.

You can do a quick fix by installing npm without using nodist. So by using the following command: npm i -g npm@latest.

Having the same issue :(

commented

nodist npm match worked.

nodist npm match worked.

And what npm version will it install if you use it?

commented

nodist npm match worked.

And what npm version will it install if you use it?

npm corresponding to the installed Node will be installed.
see here: https://nodejs.org/ja/download/releases/

GAMA@GAMANS-AM MINGW64 /d
$ nodist npm
  6.9.0
  6.14.11
> 6.14.13  (global: match)

GAMA@GAMANS-AM MINGW64 /d/workspace
$ node -v
v14.15.0

GAMA@GAMANS-AM MINGW64 /d/workspace
$ nodist npm match
npm match
https://codeload.github.com/npm/cli/tar.gz/v6.14.8 [============== ] 4996/5507 KiB 90% 0.0s

GAMA@GAMANS-AM MINGW64 /d/workspace
$ nodist npm
  6.9.0
> 6.14.8  (global: match)
  6.14.11
  6.14.13

Hello,

I spent some time on this issue today and issued a patch here: #234

For anyone with an existing version the issue can be easily avoided by replacing the nodist/lib/github.js file. I will attach that file to this comment.

Additionally, I will propagate a new version being that the older key is now invalidated.

#232 is duplicate of this.

Merged the patch today. I will work up a new version.

Hello,
...
For anyone with an existing version the issue can be easily avoided by replacing the nodist/lib/github.js file. I will attach that file to this comment.

Where is the attached file you mention? I am running 9.1 - should that already have the patch?

Here is the file he mentions: https://github.com/nullivex/nodist/blob/master/lib/github.js Replace Nodist/lib/github.js with this file

Has been fixed in v.10.3