yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.4k stars 2.73k forks source link

can't get registry scopes to work with package.json #8908

Open squarewave24 opened 1 year ago

squarewave24 commented 1 year ago

this works 👍

yarn add web-components@0.0.29 --registry https://artifactory.mycompany.com/artifactory/api/npm/myco

but when i try to do the same thing from .yarnrc it looks like it's appending my scope to npm GET request

.yarnrc

"@myscope:registry" "https://artifactory.mycompany.com/artifactory/api/npm/myco"

package.json

"dependencies": {
    "@myscope/web-components": "0.0.29",

yarn install --verbose

Performing "GET" request to "https://artifactory.mycompany.com/artifactory/api/npm/myco/@myscope%2fweb-components".

Request "https://artifactory.mycompany.com/artifactory/api/npm/myco/@myscope%2fweb-components" finished with status code 404.

Error: Couldn't find package "@myscope/web-components@0.0.29" required by "web@0.1.0" on the "npm" registry.

requesting https://artifactory.mycompany.com/artifactory/api/npm/myco/@myscope%2fweb-components expecting  https://artifactory.mycompany.com/artifactory/api/npm/myco/web-components

yarn version 
1.22.19