dzintars / front

Test setup (Don't use!) Dev server URL available while i'm developing.
https://front.oswee.dev
1 stars 1 forks source link

YN0001: │ HTTPError: @oswee/test-npm-private-package@npm:0.0.7: Response code 404 (Not Found) #124

Closed dzintars closed 4 years ago

dzintars commented 4 years ago

Yarn is failing to install the package from GitHub registry. My project level ./.npmrc contains single line: @oswee:registry = https://npm.pkg.github.com/. User level ~/.npmrc contains //npm.pkg.github.com/:_authToken=${GITHUB_NPM_PAT} and ${GITHUB_NPM_PAT} environment variable is set and accessible. Actual package is not private.

» yarn add @oswee/test-npm-private-package@0.0.7
➤ YN0000: ┌ Resolution step
➤ YN0001: │ HTTPError: @oswee/test-npm-private-package@npm:0.0.7: Response code 404 (Not Found)
    at s.<anonymous> (/home/dzintars/code/github.com/dzintars/front/.yarn/releases/yarn-berry.js:23:36333)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0.2s
dzintars commented 4 years ago

Why before version number there is that npm: prefix in the output?

dzintars commented 4 years ago

https://github.com/yarnpkg/berry/issues/1740

dzintars commented 4 years ago

https://github.com/dzintars/front/commit/a25a9b280634a8bb8f13098664a6b7fa42ddcd1b seems fixing public package import. Private packages still not accessible.

dzintars commented 4 years ago

OK. Finally booth private and public packages can be installed. bd7347cbfa7841df64d43943c87829e95b91622b TIL: filename:.yarnrc.yml github in GitHub search returns files with exact name and content. Actual problem was that i had typo in the package name i wanted to install.