在npm代理用户名和密码中转义\和@字符

时间:2018-01-16 08:27:51

标签: npm http-proxy

我通过运行以下命令设置我的npm代理配置:

npm config set proxy http://ens\andy:msc@123456@192.168.1.60:8080

我还尝试将@字符转换为密码内的"%40",但它仍然无效。

它返回以下错误消息:

  

npm ERR! code E407

     

npm ERR! 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ): vue-cli@latest

我是否需要在用户名内将\设置为%5C?如何正确设置?

1 个答案:

答案 0 :(得分:-1)

我尝试了git bash并似乎为我工作,没有遇到任何错误。

相关问题