代理

开启

npm config set proxy http://<username>:<password>@<host>:<port> npm config set https-proxy http://<username>:<password>@<host>:<port>

关闭

npm config delete proxy npm config delete https-proxy