npm configure mirror, configure proxy

npm configuration mirror

npm config list  : 查看已配置的选项内容。
1. npm config set registry “镜像仓库地址”
2. npm --registry "镜像仓库地址" info underscore

npm configure proxy

npm config set proxy "http代理地址"
npm config set https-proxy  "https代理地址"

代理删除:
npm config delete proxy
npm config delete https-proxy

What is loneliness, what is an empty-nest youth, and what is a suicidal single? Yesterday, I had my birthday, and no one said happy birthday to me... My favorite village flower Sun Dajun ignored me...
But today Dajun and his company started I have used vue as the front-end framework, and started to use npm; I need to do some pre-use configuration...
Help Dajun solve the problem, I think my image in Dajun's mind is a little taller.

Guess you like

Origin blog.csdn.net/Bruce_Zhang0828/article/details/99310136
Recommended