Title: Unable to use Yarn 2+ · Issue #5662 · NativeScript/nativescript-cli · GitHub
Open Graph Title: Unable to use Yarn 2+ · Issue #5662 · NativeScript/nativescript-cli
X Title: Unable to use Yarn 2+ · Issue #5662 · NativeScript/nativescript-cli
Description: 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 bee...
Open Graph Description: 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 e...
X Description: 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...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/5662
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to use Yarn 2+","articleBody":"### Issue Description\r\n\r\nI'm trying to use yarn as my package manager, but `ns build android` fails with the following error: `Command failed: yarn config get registry`.\r\n\r\nSeems like that config value doesn't exist anymore in Yarn 2+. It may have been renamed to the following:\r\n```\r\n❯ yarn config get npmRegistryServer\r\nhttps://registry.yarnpkg.com\r\n```\r\n\r\nThis seems to be the place where the command is ran:\r\nhttps://github.com/NativeScript/nativescript-cli/blob/bb3a6965792cc565ab6d516c30a640ac98313ee7/lib/yarn-package-manager.ts#L127\r\n\r\n### Reproduction\r\n\r\nSteps I've taken:\r\n\r\n1. `corepack enable`\r\n2. `yarn set version berry`\r\n3. `yarn install`\r\n4. Removed `package-lock.json`\r\n5. `ns package-manager set yarn`\r\n6. `ns clean`\r\n7. `ns build android`\r\n\r\n### Relevant log output (if applicable)\r\n\r\n```shell\r\nBuild output:\r\n\r\n❯ ns build android\r\n(node:28069) [DEP0148] DeprecationWarning: Use of deprecated folder mapping \"./\" in the \"exports\" field module resolution of the package at /workspaces/way-app/node_modules/vuex/package.json.\r\nUpdate this package.json to use a subpath pattern like \"./*\".\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\nPreparing project...\r\n(node:28118) [DEP0148] DeprecationWarning: Use of deprecated folder mapping \"./\" in the \"exports\" field module resolution of the package at /workspaces/way-app/node_modules/vuex/package.json.\r\nUpdate this package.json to use a subpath pattern like \"./*\".\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\nassets by path assets/flags/*.png 53.2 KiB\r\n asset assets/flags/bn.png 847 bytes [compared for emit] [from: app/assets/flags/bn.png] [copied]\r\n + 195 assets\r\nassets by path fonts/ 6.48 MiB 41 assets\r\nassets by path assets/css/ 147 KiB\r\n assets by path assets/css/*.scss 17.1 KiB 7 assets\r\n assets by path assets/css/*.css 130 KiB 2 assets\r\nassets by path *.js 13.5 MiB\r\n asset vendor.js 11.5 MiB [compared for emit] (name: vendor) (id hint: defaultVendor)\r\n asset bundle.js 2.06 MiB [compared for emit] (name: bundle)\r\n asset runtime.js 13.2 KiB [compared for emit] (name: runtime)\r\nassets by path assets/json/*.json 186 KiB\r\n asset assets/json/LottieSpinningCar.json 92.9 KiB [compared for emit] [from: app/assets/json/LottieSpinningCar.json] [copied]\r\n asset assets/json/LottieTest.json 92.9 KiB [compared for emit] [from: app/assets/json/LottieTest.json] [copied]\r\nasset assets/images/NativeScript-Vue.png 8.22 KiB [compared for emit] [from: app/assets/images/NativeScript-Vue.png] [copied]\r\nEntrypoint bundle 13.5 MiB = runtime.js 13.2 KiB vendor.js 11.5 MiB bundle.js 2.06 MiB\r\nruntime modules 2.84 KiB 9 modules\r\norphan modules 542 bytes [orphan] 7 modules\r\nmodules by path ./node_modules/ 4.33 MiB\r\n javascript modules 4.07 MiB 510 modules\r\n json modules 273 KiB\r\n modules by path ./node_modules/mdn-data/css/*.json 242 KiB 3 modules\r\n modules by path ./node_modules/css-tree/ 30.7 KiB 2 modules\r\nmodules by path ./app/ 559 KiB 437 modules\r\nexternal \"~/package.json\" 42 bytes [optional] [built] [code generated]\r\nwebpack 5.71.0 compiled successfully in 7030 ms\r\nWebpack compilation complete.\r\n(node:28069) [DEP0148] DeprecationWarning: Use of deprecated folder mapping \"./\" in the \"exports\" field module resolution of the package at /workspaces/way-app/node_modules/@nativescript/core/node_modules/tslib/package.json.\r\nUpdate this package.json to use a subpath pattern like \"./*\".\r\nCommand failed: yarn config get registry\r\n```\r\n```\r\n\r\n\r\n### Environment\r\n\r\nUsing Yarn 3.2.0\r\nUsing Node 16.14.0\r\n\r\n### Please accept these terms\r\n\r\n- [X] I have searched the [existing issues](https://github.com/NativeScript/nativescript-cli/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\r\n- [X] This is a bug report\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/larrifax","@type":"Person","name":"larrifax"},"datePublished":"2022-04-07T09:11:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/5662/nativescript-cli/issues/5662"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4198ad04-7c8a-a091-2d1c-665537767ef3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A832:10C5CB:11DF53E:17BD465:696EC575 |
| html-safe-nonce | 3b91969c8617382f99e098c4cfd58d69098b779f18869e8b8f6e662809c63847 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODMyOjEwQzVDQjoxMURGNTNFOjE3QkQ0NjU6Njk2RUM1NzUiLCJ2aXNpdG9yX2lkIjoiNzQ5NzA1NzE0ODU3MTkyNzkyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 83ecd0211ba5794e8f8e14270250d3c833f07e57333719a3ce9e0d1283e96537 |
| hovercard-subject-tag | issue:1195750066 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/5662/issue_layout |
| twitter:image | https://opengraph.githubassets.com/591957e911cab050fa73d247462c33a3dd9765b69be4462ed9dc3bed36b71f92/NativeScript/nativescript-cli/issues/5662 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/591957e911cab050fa73d247462c33a3dd9765b69be4462ed9dc3bed36b71f92/NativeScript/nativescript-cli/issues/5662 |
| og:image:alt | 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 e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | larrifax |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width