-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"yarn config set registry" is not work #4862
Comments
+1 here. |
I've deleted the
Reference: #2508 (comment) |
It not work @thibault-p. I made a clear workspace at ~/.yarnrc
~/.npmrc
The workspace file list
yarn-error.log file content
|
is caused by the command
Using the Be sure you're setting your configs in yarn using (without the
e.g.:
|
@ckitterl IIRC, npm config takes priority over yarn config, so you'd have to remove |
@zamnuts It's not work yet |
Do you mean I can not set registry of yarn that different from npm? |
Hi, this is relative to only |
It should, we even use it in the tests: https://github.com/yarnpkg/yarn/blob/master/packages/pkg-tests/yarn.test.js#L43 |
@arcanis I'm getting a sort of an inconsistent behavior compared to NPM. In this case the env var doesn't take effect for Yarn - I ensured that there's no registry previously set from gbort@gbort-mbp:~$ npm config get registry
https://martifactory.io/api/npm/virtual-npm/
gbort@gbort-mbp:~$ NPM_CONFIG_REGISTRY=https://example.com/npm/registry npm config get registry
https://example.com/npm/registry
gbort@gbort-mbp:~$ yarn config get registry
https://registry.yarnpkg.com
gbort@gbort-mbp:~$ NPM_CONFIG_REGISTRY=https://example.com/npm/registry yarn config get registry
https://registry.yarnpkg.com
gbort@gbort-mbp:~$ yarn --version
1.10.1 |
hey hey
but i actually do not know if this is a supported way or does only work by accident as i couldn't find the documentation for this. |
i have set yarn registry config to my own private repo using "yarn config set registry https://myrepo/" |
Uninstalled yarn by |
On mac, I created a
and it worked |
hmmm?
|
this might help, try I have yarn 1.19.1 installed, found it also reads npmrc files and it ignores the yarnrc if there is |
Same issue here, this time, for specific registry setup not global. yarn config set "@myOwn:registry" "http://myserver:4323" will make yarn: without the quotes it gets the aforementioned wrong format |
I've removed everything in "C:\Users\User\AppData\Local\Yarn\Cache" and "C:\Users\User\AppData\Local\Yarn\Data\global", and now its working... |
|
Closing as we've fixed all config-related issues in v2 where we only support |
Also don't forget to regenerate yarn.lock file after changing registry. It's neccessary because yarn.lock contains links to old registry |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
I used "yarn config set registry http://myPrivateRegistry" to config a custom registry.But it's not work, and be rewrited by npm config.
There is a custom registry at npm
After config yarn registry, I checked
When I used yarn to install $MyPrivatePackage, yarn retrieved from http://registry.npm.taobao.org and failed.
Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: