-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Unable to use Yarn 2+ #5662
Comments
We would need to treat it as a separate package manager like Should actually revive this effort #5379 and just add |
@rigor789 ok do you want me to add yarn2 now with a PR? or should i wait for the refactoring?/ |
If it's not too complicated you can add it now, only concerned about it because there are many services that deal with package management, so will require quite a few changes across the board... |
Issue Description
I'm trying to use yarn as my package manager, but
ns build android
fails with the following error:Command failed: yarn config get registry
.Seems like that config value doesn't exist anymore in Yarn 2+. It may have been renamed to the following:
This seems to be the place where the command is ran:
nativescript-cli/lib/yarn-package-manager.ts
Line 127 in bb3a696
Reproduction
Steps I've taken:
corepack enable
yarn set version berry
yarn install
package-lock.json
ns package-manager set yarn
ns clean
ns build android
Relevant log output (if applicable)
The text was updated successfully, but these errors were encountered: