You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run in terminal rm -rf node_modules corepack enable corepack prepare pnpm@latest --activate pnpm install or pnpm version
How often does it reproduce? Is there a required condition?
Anytime invalid package version used for PNPM
What is the expected behavior?
Handle Error with helpful response.
e.g.
Invalid Package.Json:112 config for packageManager.
Requested pnpm version 7.13.14 is invalid "packageManager": "[email protected]",
What do you see instead?
Unhandled, Ambiguous and Unhelpful Error.
Internal Error: Server answered with HTTP 404
at ClientRequest.<anonymous> (/Users/jeremiah.snee/.asdf/installs/nodejs/18.12.0/lib/node_modules/corepack/dist/corepack.js:16060:31)
at Object.onceWrapper (node:events:628:26)
at ClientRequest.emit (node:events:513:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
at TLSSocket.socketOnData (node:_http_client:534:22)
at TLSSocket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
Version
v18.12.0
Platform
Darwin MBPM1-OP-43 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64
Subsystem
corepack
What steps will reproduce the bug?
Open Existing node project
Add
"packageManager": "[email protected]",
topackage.json
Run in terminal
rm -rf node_modules
corepack enable
corepack prepare pnpm@latest --activate
pnpm install
orpnpm version
How often does it reproduce? Is there a required condition?
Anytime invalid package version used for PNPM
What is the expected behavior?
Handle Error with helpful response.
e.g.
Invalid Package.Json:112 config for packageManager.
Requested pnpm version 7.13.14 is invalid
"packageManager": "[email protected]",
What do you see instead?
Unhandled, Ambiguous and Unhelpful Error.
Additional information
Simple Fix.
Check https://registry.npmjs.org/pnpm for valid matching version before creating http request.
The text was updated successfully, but these errors were encountered: