Skip to content

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

Description

@ipmincubus1369

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.

Activity

  1. styfle commented on Feb 21, 2024

    @styfle
    SponsorMember

    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.

  2. ipmincubus1369 commented on Feb 21, 2024

    @ipmincubus1369
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions