如何设置npm代理

1. 设置淘宝的npm镜像

npm的配置文件地址为: c:\Usees\[用户]\.npmrc

registry=http://registry.npm.taobao.org

no-proxy=.huawei.com

proxy=http://[username]:[password]@proxy:port

https-proxy=http://[username]:[password]@proxy:port

strict-ssl=false

2.淘宝npm镜像地址

https://npm.taobao.org

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.