Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When I execute yarn config delete http-proxy
the http-proxy
configuration setting is not removed
If the current behavior is a bug, please provide the steps to reproduce.
%>yarn config delete http-proxy
_But http-proxy is still there..._
%>yarn config get http-proxy
http://10.32.11.142:8888
What is the expected behavior?
http-proxy
config setting should be removed
Please mention your node.js, yarn and operating system version.
node -v 8.9.4
yarn -v 1.3.2
OS = Windows 10
Apparently u also have to delete the same keys from npm. Had e same issue on my laptop. Had set proxy to be able to run some commands from my work LAN. When I tried to delete the proxy at home, yarn config get proxy
still showed the proxy value. It only worked after i did both yarn config delete proxy
and npm config delete proxy
. Not sure why though, I thought yarn settings and npm settings are supposed to be different.
Unfortunately this did not work for me.
yarn v1.3.2 on windows 10x64
C:\cmder
位 yarn config delete proxy
yarn config v1.3.2
success Deleted "proxy".
Done in 0.27s.
C:\cmder
位 yarn config delete https-proxy
yarn config v1.3.2
success Deleted "https-proxy".
Done in 0.25s.
C:\cmder
位 npm config delete proxy
C:\cmder
位 npm config delete https-proxy
C:\cmder
位 yarn config get proxy
192.168.32.2:8080
C:\cmder
位 npm config get proxy
null
yarn config delete proxy
yarn config delete https-proxy
uranio-235... Ok. So what is the value of your comment? You are just restating what DOESN'T work.
I got around this bug with:
yarn config set proxy ''
yarn config set https-proxy ''
I managed to solve this using these commands
yarn config delete https-proxy
npm config rm https-proxy
I got around this bug with:
yarn config set proxy '' yarn config set https-proxy ''
This works for me like a charm!!!
Most helpful comment
I got around this bug with: