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

installation failure with Type Error: URL.canParse is not a function #394

Closed
ipmincubus1369 opened this issue Feb 21, 2024 · 2 comments
Closed

Comments

@ipmincubus1369
Copy link

Hi team,
Did any of you get this error in 0.25.1? Currently reverted to 0.24.1 as a workaround.

yarn install --verbose
Type Error: URL.canParse is not a function
    at parseSpec (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:23613:21)
    at loadSpec (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:23690:11)
    at async findProjectSpec (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:23635:20)
    at async executePackageManagerRequest (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:24209:18)
    at async BinaryCommand.validateAndExecute (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:21164:22)
    at async _Cli.run (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22139:18)
    at async Object.runMain (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:24265:12)
yarn install failed.
@styfle
Copy link
Member

styfle commented Feb 21, 2024

You're probably on an old version of Node.js

Some context is here: #359 (review)

Technically, 0.25.0 can introduce breaking changes according to https://semver.org

Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.

@ipmincubus1369
Copy link
Author

ah ok, we are indeed on older version - V16.

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

2 participants