无法删除npm代理

在工作中我有一个代理并在npm中设置它

 npm config set proxy http://theproxy:8080
 npm config set https-proxy https://theproxy:8080

失业,我没有代理,需要在npm删除它.

我试过了

 npm config rm proxy
 npm config rm https-proxy

 npm config delete proxy
 npm config delete https-proxy

但是当我用的时候

 npm config get proxy
 npm config get https-proxy

代理仍在那里

如何在npm中删除代理

最佳答案 它对我来说非常好..

saidas-mbp:trunk saidababuchanda$npm config set proxy https://www.google.com
saidas-mbp:trunk saidababuchanda$npm config get proxy 
https://www.google.com
saidas-mbp:trunk saidababuchanda$npm config delete proxy 
saidas-mbp:trunk saidababuchanda$
saidas-mbp:trunk saidababuchanda$npm config get proxy 
null
saidas-mbp:trunk saidababuchanda$npm -v
1.4.14
saidas-mbp:trunk saidababuchanda$

请看你的npm版本

点赞