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

Corepack error with yarn on enable #450

Closed
MP185496 opened this issue Apr 5, 2024 · 2 comments
Closed

Corepack error with yarn on enable #450

MP185496 opened this issue Apr 5, 2024 · 2 comments

Comments

@MP185496
Copy link

MP185496 commented Apr 5, 2024

I enabled corepack and when i tried to install modules by running yarn i got this error
Type Error: URL.canParse is not a function
at parseSpec (/Users/user/.nvm/versions/node/v18.15.0/lib/node_modules/corepack/dist/lib/corepack.cjs:23359:21)
at loadSpec (/Users/user/.nvm/versions/node/v18.15.0/lib/node_modules/corepack/dist/lib/corepack.cjs:23422:11)
at async InstallLocalCommand.resolvePatternsToDescriptors (/Users/user/.nvm/versions/node/v18.15.0/lib/node_modules/corepack/dist/lib/corepack.cjs:23894:22)
at async InstallLocalCommand.execute (/Users/user/.nvm/versions/node/v18.15.0/lib/node_modules/corepack/dist/lib/corepack.cjs:24030:26)
at async InstallLocalCommand.validateAndExecute (/Users/user/.nvm/versions/node/v18.15.0/lib/node_modules/corepack/dist/lib/corepack.cjs:21164:22)
at async _Cli.run (/Users/mp185496/.nvm/versions/node/v18.15.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22139:18)
at async Object.runMain (/Users/user/.nvm/versions/node/v18.15.0/lib/node_modules/corepack/dist/lib/corepack.cjs:24355:12)

@styfle
Copy link
Member

styfle commented Apr 5, 2024

You are running an old version of Node.js so you’ll need to upgrade. See duplicate issue:

@aduh95
Copy link
Contributor

aduh95 commented Apr 6, 2024

Duplicate of #394

My recommendation is to upgrade the version of Node.js you're using, but you can also check the other issues for alternative solutions.

@aduh95 aduh95 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 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

3 participants