René's URL Explorer Experiment


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

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4198ad04-7c8a-a091-2d1c-665537767ef3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA832:10C5CB:11DF53E:17BD465:696EC575
html-safe-nonce3b91969c8617382f99e098c4cfd58d69098b779f18869e8b8f6e662809c63847
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODMyOjEwQzVDQjoxMURGNTNFOjE3QkQ0NjU6Njk2RUM1NzUiLCJ2aXNpdG9yX2lkIjoiNzQ5NzA1NzE0ODU3MTkyNzkyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac83ecd0211ba5794e8f8e14270250d3c833f07e57333719a3ce9e0d1283e96537
hovercard-subject-tagissue:1195750066
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/5662/issue_layout
twitter:imagehttps://opengraph.githubassets.com/591957e911cab050fa73d247462c33a3dd9765b69be4462ed9dc3bed36b71f92/NativeScript/nativescript-cli/issues/5662
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/591957e911cab050fa73d247462c33a3dd9765b69be4462ed9dc3bed36b71f92/NativeScript/nativescript-cli/issues/5662
og:image:altIssue 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelarrifax
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5662#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F5662
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F5662
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5662
Reloadhttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5662
Reloadhttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5662
NativeScript https://patch-diff.githubusercontent.com/NativeScript
nativescript-clihttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli
Please reload this pagehttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5662
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FNativeScript%2Fnativescript-cli
Fork 198 https://patch-diff.githubusercontent.com/login?return_to=%2FNativeScript%2Fnativescript-cli
Star 1k https://patch-diff.githubusercontent.com/login?return_to=%2FNativeScript%2Fnativescript-cli
Code https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli
Issues 361 https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues
Pull requests 13 https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/pulls
Actions https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/actions
Projects 0 https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/security
Please reload this pagehttps://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5662
Insights https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/pulse
Code https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli
Issues https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues
Pull requests https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/pulls
Actions https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/actions
Projects https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/projects
Security https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/security
Insights https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/5662
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/5662
Unable to use Yarn 2+https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/issues/5662#top
bug-pending-triageReported bug, pending triage to confirm.https://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug-pending-triage%22
https://github.com/larrifax
https://github.com/larrifax
larrifaxhttps://github.com/larrifax
on Apr 7, 2022https://github.com/NativeScript/nativescript-cli/issues/5662#issue-1195750066
nativescript-cli/lib/yarn-package-manager.tshttps://github.com/NativeScript/nativescript-cli/blob/bb3a6965792cc565ab6d516c30a640ac98313ee7/lib/yarn-package-manager.ts#L127
bb3a696https://patch-diff.githubusercontent.com/NativeScript/nativescript-cli/commit/bb3a6965792cc565ab6d516c30a640ac98313ee7
bug-pending-triageReported bug, pending triage to confirm.https://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug-pending-triage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.