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

Unpublished Packages Throw Inaccurate Error #5849

Closed
shellscape opened this issue Dec 28, 2022 · 1 comment · Fixed by #5854
Closed

Unpublished Packages Throw Inaccurate Error #5849

shellscape opened this issue Dec 28, 2022 · 1 comment · Fixed by #5854
Assignees
Milestone

Comments

@shellscape
Copy link
Contributor

shellscape commented Dec 28, 2022

pnpm version: 7.21.0

Code to reproduce the issue:

Expected behavior:

An error code thrown which matches the state of the package; in this case, that it's unpublished or has no versions. Here is NPM's behavior:

→ npm add dsr-package-duets-torcs-riled-stays 
npm ERR! code ENOVERSIONS
npm ERR! No versions available for dsr-package-duets-torcs-riled-stays

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/powella/.npm/_logs/2022-12-28T16_42_24_356Z-debug-0.log

Actual behavior:

→ pnpm add dsr-package-duets-torcs-riled-stays
 ERR_PNPM_MALFORMED_METADATA  Received malformed metadata for "dsr-package-duets-torcs-riled-stays"

Additional information:

It's worth noting that Yarn fixed this at a point, and then regressed yarnpkg/yarn#5335

  • node -v prints: v16.17.0
  • Windows, macOS, or Linux?: MacOS
@shellscape
Copy link
Contributor Author

thanks man!

@zkochan zkochan added this to the v7.22 milestone Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants