配置npm代理¶
在 我的vim配置 安装 YouCompleteMe
插件时,会发现 Go Atlas 和 Node.js Atlas 使用的模块仓库都被GFW屏蔽了。所以,不仅需要 配置Go程序代理服务器 ,也需要配置NPM代理服务器
我采用 alias
方式配置 npm
使用代理服务器:
alias npm='npm --proxy http_proxy=192.168.7.9:3128'
其他辅助配置(可选):
npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"