Closed
Description
Corepack rejects valid package specifiers which are not versions.
For instance the following are valid specifiers which are more specific than semver but which nevertheless are rejected by corepack
:
npm@github:npm/cli#c12ea07
yarn@https://registry.npmjs.org/yarn/-/yarn-2.4.3.tgz
output:
corepack use yarn@https://registry.npmjs.org/yarn/-/yarn-2.4.3.tgz
Usage Error: Tag not found (https://registry.npmjs.org/yarn/-/yarn-2.4.3.tgz)
$ corepack use <pattern>
corepack install --global yarn@https://registry.npmjs.org/yarn/-/yarn-2.4.3.tgz
Internal Error: ENOENT: no such file or directory, stat '/Users/dan/Source/corepack/yarn@https:/registry.npmjs.org/yarn/-/yarn-2.4.3.tgz'
Error: ENOENT: no such file or directory, stat '/Users/dan/Source/corepack/yarn@https:/registry.npmjs.org/yarn/-/yarn-2.4.3.tgz'
Metadata
Metadata
Assignees
Labels
No labels