当前位置:网站首页>NPM add source and switch source

NPM add source and switch source

2022-07-26 08:54:00 Arrogance.miner

nrm yes npm Image source management tools , Sometimes foreign resources are too slow , You can use this to quickly npm Switch between sources

Global installation nrm

npm install -g nrm

nrm ls View the currently added sources
 Insert picture description here
Sometimes we need to create our own npm Mirror source
The company has its own npm Address Many dependencies are in the package address of the company
add to

nrm add < Image source name ( Whatever the )>  < Mirror source url Address >

eg

nrm add zhangsan https://r.cnpmjs.org

Switch to the added mirror source

nrm use xxx
原网站

版权声明
本文为[Arrogance.miner]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/201/202207181751310440.html