Yarn 2 "Unrecognized or legacy configuration settings found" npmScopes and npmRegistries

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mkataneccommented, Feb 2, 2021

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

0reactions
mkataneccommented, Feb 5, 2021

Hi,

@merceyz I’ve opened a new issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found