Pkgx errors on yarn 1
example $ pkgx --version
pkgx 1.3.1
example $ ls
package.json
example $ cat package.json
{
"packageManager": "[email protected]"
}
example $ dev on
× version unavailable [email protected]
│ please check the following url for available versions
│ if it’s not there, we’ll build it! open a ticket on the pantry.
╰─➤ https://dist.pkgx.dev/?prefix=yarnpkg.com/darwin/aarch64
I updated today (dunno what I was on before. 1.1.6 maybe?), and hit this error.
I can't easily change the package.json, since we're a whole team using it. I've been fine just adding my own pkgx.yaml next to it before - pkgx would install both yarns but it ran fine - but that doesn't work anymore, so now I have to edit the package.json locally to use pkgx and deal with reapplying the local changes whenever I change branches etc.
pkgxdev/dev#24 is probably related, but more theoretical. This is an error.
I've downgraded to 1.1.6 and can confirm it works there.
yarn 1 is in package classic.yarnpkg.com not yarnpkg.com. So the discovery might be wrong here which is reading the package.json.