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

parseURL failed when installing pnpm #559

Open
MaxtuneLee opened this issue Sep 10, 2024 · 0 comments
Open

parseURL failed when installing pnpm #559

MaxtuneLee opened this issue Sep 10, 2024 · 0 comments

Comments

@MaxtuneLee
Copy link

I'm using Node.js v20.17.0, and I am having problem when installing pnpm by corepack use pnpm@latest.
Corepack throw a parseURL immediately.

Invalid Argument Error: Invalid URL protocol: the URL must start with `http:` or `https:`.
    at parseURL (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:3698:15)
    at Object.parseOrigin (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:3703:13)
    at new Pool (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:11633:27)
    at defaultFactory (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:11773:14)
    at new ProxyAgent2 (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:11803:25)
    at getProxyAgent (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:21662:10)
    at async fetch (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:21582:17)
    at async fetchAsJson (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:21623:20)
    at async fetchAvailableTags (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:21563:20)
    at async fetchAvailableTags2 (/Users/maxtune/.nvm/versions/node/v20.17.0/lib/node_modules/corepack/dist/lib/corepack.cjs:21686:14)

I tried to change to another device or downgrade node to 18.20.4 and still having the same issue.

@MaxtuneLee MaxtuneLee changed the title parseURL failed when installing pnpm parseURL failed when installing pnpm Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant