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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to install package that is missing in Yarn Registry but present on NPM #5212

Open
antoniobrandao opened this issue Jan 13, 2018 · 6 comments
Assignees
Labels

Comments

@antoniobrandao
Copy link

> yarn
yarn install v1.3.2
[1/4] 馃攳  Resolving packages...
[2/4] 馃殮  Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.5.tgz: Request failed \"404 Not Found\"".

But it works with

npm install

Yarn registry:

image

NPM:

image

@ghost ghost assigned arcanis Jan 13, 2018
@ghost ghost added the triaged label Jan 13, 2018
@Nikki1993
Copy link

Well judging by the screenshot, the latest version is 2.0.4 and yet yarn tries to download 2.0.5 I reckon it's not entirely the problem of registry here.

@antoniobrandao
Copy link
Author

@Nikki1993 makes it even more interesting to find out why npm install succeeds.

Is there a way to force yarn to fetch code directly from NPM?

@Nikki1993
Copy link

I am not entirely sure but isn't yarn already using npm registry to get modules? It's possible that the author released 2.0.5 and then pulled it resulting in de-sync of yarn mirror to npm.

At least I was/am convinced that's how yarn works 馃槃

@meechanism
Copy link

These could be related because it happened around the same time as this issue. There was a time when some packages went missing and other users of Pinkie experienced the same problem.

@antoniobrandao
Copy link
Author

Well I just set Yarn to fetch directly form NPM and everything works fine now.

yarn config set registry https://registry.npmjs.org/

@Stan-Stani
Copy link

Well I just set Yarn to fetch directly form NPM and everything works fine now.

yarn config set registry https://registry.npmjs.org/

This should revert it if necessary: yarn config delete registry

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

No branches or pull requests

5 participants