📜  npm install 在代理后面不起作用 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:34.140000             🧑  作者: Mango

代码示例1
npm config set strict-ssl false

# Set npm to use http instead of https
npm config set registry "http://registry.npmjs.org/"

# install your package with below syntax, can leave out the
# username:password section if your proxy does not require
# you to authenticate. The "http://" part is very important
npm --proxy http://username:password@cacheaddress.com.br:80 install packagename