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

Nodist can't find npm version 7.14.0 #233

Closed
premedios opened this issue May 26, 2021 · 13 comments
Closed

Nodist can't find npm version 7.14.0 #233

premedios opened this issue May 26, 2021 · 13 comments

Comments

@premedios
Copy link

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.

@spoilerdo
Copy link

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.

@pocfusion1
Copy link

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.

@spoilerdo
Copy link

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

@nullivex
Copy link
Member

nullivex commented May 30, 2021 via email

@JellevanHaaften
Copy link

Having the same issue :(

@gamaspecial
Copy link

nodist npm match worked.

@spoilerdo
Copy link

nodist npm match worked.

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

@gamaspecial
Copy link

gamaspecial commented Jun 4, 2021

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

@nullivex
Copy link
Member

nullivex commented Jun 5, 2021

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.

@nullivex
Copy link
Member

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

@craigphicks
Copy link

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?

@cagdas001
Copy link

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

@Mairu
Copy link
Contributor

Mairu commented Dec 9, 2023

Has been fixed in v.10.3

@Mairu Mairu closed this as completed Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants