-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
I'm using yarn 0.17.3, this AFAIK is a bug.
In CI we have a file /etc/npmrc to point to the proxy we use for internet access:
ci$ cat /etc/npmrc
proxy = http://npmcache:3128
https-proxy = http://npmcache:3128
npm is picking up this configuration:
ci$ npm config list
; cli configs
user-agent = "npm/3.10.3 node/v6.7.0 linux x64"
; globalconfig /usr/etc/npmrc
https-proxy = "http://npmcache:3128/"
proxy = "http://npmcache:3128/"
; node bin location = /usr/bin/nodejs
; cwd = /home/ci
; HOME = /home/ci
; "npm config ls -l" to show all defaults.
But yarn does not:
ci$ yarn config list
yarn config v0.17.3
info yarn config
{ 'version-tag-prefix': 'v',
'version-git-tag': true,
'version-git-sign': false,
'version-git-message': 'v%s',
'init-version': '1.0.0',
'init-license': 'MIT',
'save-prefix': '^',
'ignore-scripts': false,
'ignore-optional': false,
registry: 'https://registry.yarnpkg.com',
'strict-ssl': true,
'user-agent': 'yarn/0.17.3 npm/? node/v6.7.0 linux x64' }
info npm config
{}
Done in 0.07s.
derekdowling and jpbochi