Replies: 3 comments 1 reply
-
|
This is almost certainly an npm registry issue, not a pnpm bug. The audit endpoint ( Troubleshooting1. Check if the npm registry audit endpoint is healthy: curl -s -o /dev/null -w "%{http_code}" https://registry.npmjs.org/-/npm/v1/security/advisories/bulk -X POST -H "Content-Type: application/json" -d '{}'If you get a 503 or 500, it's the registry. 2. Try with npm directly to confirm: npm audit --json --registry https://registry.npmjs.org/If npm also fails with a similar error, it's the registry. 3. Clear cache and retry: pnpm store prune
pnpm audit --json --registry https://registry.npmjs.org/4. Check your lockfile hasn't been corrupted: pnpm install --frozen-lockfile
pnpm audit --jsonKnown causes
WorkaroundIf you need audit results now and the bulk endpoint is flaky: # Use the advisory database directly
npx auditjs ossi
# or
npx better-npm-audit auditIf this started happening without any changes to your |
Beta Was this translation helpful? Give feedback.
-
|
I filed an issue regarding this problem in #10649 (didn't realize to check out discussions beforehand). Anyway, there's a small repro package.json included in the issue. And from what I gather:
Soo, probably something changed in the npm registry's end, but I think some action is required from either npm or pnpm side 🤔 (yarn v1 audit gets an HTTP 500 also, but not sure if that's relevant since it has been frozen for years already). |
Beta Was this translation helpful? Give feedback.
-
|
Fixed in 10.30.1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm running this command:
and while it worked three days ago, with no changes to package.json, it now gives me this:
Now, I know this might well be an error at npmjs.org but their status page does not show anything.
Looking at the documentation for
npm audit, I see that there are two endpoints bulk (with url/-/npm/v1/security/advisories/bulk) and quick (with url/-/npm/v1/security/audits/quick) but none of those two is used above, it's at least missing the/quicksuffix.What can I do to fix this situation?
I'm using pnpm 10.30.0 which I believe is the latest as of the time of writing this message.
Any help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions