Yarn 2 "Unrecognized or legacy configuration settings found" npmScopes and npmRegistries
See original GitHub issueBug description
In a fresh install of yarn 2 in an otherwise empty project, I am getting an “Unrecognized or legacy configuration settings found” for my npmScopes and npmRegistries settings in my .yarnrc.yml file. Here are the contents of the file (with the token replaced):
yarnPath: ".yarn/releases/yarn-berry.cjs"
npmScopes:
gsap:
npmRegistryServer: "https://npm.greensock.com"
npmRegistries:
//npm.greensock.com:
npmAlwaysAuth: true
npmAuthToken: "TOKEN-GOES-HERE"
What is the current behavior?
Yarn errors at the gsap
or //npm.greensock.com:
lines (depending which one I put first in the file). It seems like I’m doing it correctly according to the docs. Has something changed?
What is the expected behavior? I expect it to install GSAP from the given private registry.
Using NPM I can install this by adding the following to my .npmrc file:
//npm.greensock.com/:_authToken=TOKEN-GOES-HERE
@gsap:registry=https://npm.greensock.com
and installing via npm install gsap@npm:@gsap/business
Environment
- Yarn v1 Version:
1.22.10
- OS and version: Catalina
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Yarn 2 "Unrecognized or legacy configuration settings found ...
Bug description In a fresh install of yarn 2 in an otherwise empty project, I am getting an "Unrecognized or legacy configuration settings...
Read more >`yarn set version from sources` results in "Unrecognized or ...
From the docs I've read, changesetIgnorePatterns should be a valid configuration setting so the only thing I can think of is yarn is...
Read more >Configuration options | Yarn - Package Manager
List of all the configuration option for Yarn (yarnrc files) ... While Yarn will automatically find them in the parent directories, they should...
Read more >How to fix the Yarn Installation Error "The term yarn is not ...
This is a snippet from my previous video hence there is not intro and outro#YarnInstallation #YarnErrorHow to fix yarn error while ...
Read more >Repository - GitLab
yarn -berry.cjs ... LATEST:await h(async()=>{if("unknown"! ... UsageError(`Unrecognized or legacy configuration settings found: ${o} - run ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I’m having the same issue when trying to upgrade to yarn 2 I’ve tried using the latest version with
yarn set version from sources
but i still get"Unrecognized or legacy configuration settings found" npmScopes
Hi,
@merceyz I’ve opened a new issue