无法删除npm代理

ttm*_*tmt 5 proxy npm

在工作中我有一个代理,并在npm中进行设置

 npm config set proxy http://theproxy:8080
 npm config set https-proxy https://theproxy:8080
Run Code Online (Sandbox Code Playgroud)

没有工作,我没有代理,需要在npm中将其删除。

我试过了

 npm config rm proxy
 npm config rm https-proxy
Run Code Online (Sandbox Code Playgroud)

 npm config delete proxy
 npm config delete https-proxy
Run Code Online (Sandbox Code Playgroud)

但是当我使用

 npm config get proxy
 npm config get https-proxy
Run Code Online (Sandbox Code Playgroud)

代理仍然在那里

如何在npm中删除代理

小智 1

它对我来说非常有效..

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$ 
Run Code Online (Sandbox Code Playgroud)

请查看你的npm版本