nodist icon indicating copy to clipboard operation
nodist copied to clipboard

Nodist can't find npm version 7.14.0

Open premedios opened this issue 4 years ago • 12 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 [email protected], it complains about npm.cmd and suggests that I run the command with --force.. If I run the command with --force it works.

premedios avatar May 26 '21 21:05 premedios

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.

martijndormans avatar May 28 '21 12:05 martijndormans

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.

pocfusion1 avatar May 30 '21 10:05 pocfusion1

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

martijndormans avatar May 30 '21 17:05 martijndormans

Hello,

I will take a look into fixing this tomorrow. Sorry for the trouble.

Thank you

nullivex avatar May 30 '21 17:05 nullivex

Having the same issue :(

JellevanHaaften avatar May 31 '21 21:05 JellevanHaaften

nodist npm match worked.

gamaspecial avatar Jun 02 '21 16:06 gamaspecial

nodist npm match worked.

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

martijndormans avatar Jun 02 '21 17:06 martijndormans

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

gamaspecial avatar Jun 04 '21 10:06 gamaspecial

Hello,

I spent some time on this issue today and issued a patch here: https://github.com/nullivex/nodist/pull/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.

nullivex avatar Jun 05 '21 00:06 nullivex

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

nullivex avatar Jun 10 '21 19:06 nullivex

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?

craigphicks avatar Oct 10 '21 20:10 craigphicks

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

cagdas001 avatar Nov 04 '21 15:11 cagdas001

Has been fixed in v.10.3

Mairu avatar Dec 09 '23 10:12 Mairu