pnpm
pnpm copied to clipboard
fix: installation failed due to installation link redirection (v11)
In version 11, the node-fetch version was changed from npm:@pnpm/[email protected] to ^3.3.2, causing the location header to return a relative path when installing dependencies via pkg.pr.new, thus preventing new URL(location) from parsing.
Therefore, for compatibility, a special conversion for relative paths is implemented to ensure correct logic.
pnpm add https://pkg.pr.new/vue@14175