NPM升级package.json中的版本号以及更换数据源

2021-11-01  本文已影响0人  伪全栈工程师

<div class="image-package"><img src="https://img.haomeiwen.com/i6782189/94c24dfaff9c46e4.jpg" img-data="{"format":"jpeg","size":478427,"height":1770,"width":2092}" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p>npm install -g npm-check-updates

ncu //显示当前目录下项目中所有新的依赖包

ncu -u //更新项目package文件

npm install



pm install -g nrm

nrm ls //查看镜像源, *表示正在使用的

* npm -------- https://registry.npmjs.org/
yarn ------- https://registry.yarnpkg.com/
cnpm ------- http://r.cnpmjs.org/
taobao ----- https://registry.npm.taobao.org/
nj --------- https://registry.nodejitsu.com/
npmMirror -- https://skimdb.npmjs.com/registry/
edunpm ----- http://registry.enpmjs.org/

nrm use taobao //切换</p>

上一篇 下一篇

猜你喜欢

热点阅读