Open igordanchenko opened 2 years ago
Here is a temporary workaround that worked in my case:
YARN_CHECKSUM_BEHAVIOR=ignore yarn install
I believe you need to authenticate with github locally to be able to fetch packages, I would look into this https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry
Confirming I am authenticated via personal GitHub token in the ~/.npmrc
But what does this resolution have to do with GitHub packages? I thought it is just pulling that dependency from a specific commit in a public GitHub repo? (hence, the authentication should be irrelevant)
You need an access token to publish, install, and delete private, internal, and public packages
Just wanted to confirm that you are authenticated as this was my issue.
When installing github "repos", npm treats them as packages
Here is what I have in my .npmrc:
//npm.pkg.github.com/:_authToken=ghp_<my_token>
Is this sufficient?
I've used npm login
cli, haven't tried .npmrc tbh
Yes, I believe I'm all set with authentication here.
% npm whoami --registry https://npm.pkg.github.com
igordanchenko
Definitely not an authentication issue, given the package is cloned and built successfully and only fails at checksum validation. I'm also running into this in personal projects, with dependencies set to github URLs with version or release tags.
Possibly related to https://github.com/yarnpkg/berry/issues/2399?
Describe the bug
Yarn install fails in local dev environment making it impossible to start local dev environment without removing broken custom dependency (pastelsky/webpack-4-modern)
To Reproduce
The error causing yarn install failure:
Removing the following resolution in package.json allows yarn installation to complete without errors.
Expected behavior
yarn install
should complete without failures.