美文网首页
NPM升级package.json中的版本号以及更换数据源

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

作者: 伪全栈工程师 | 来源:发表于2021-11-01 14:42 被阅读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>

相关文章

网友评论

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

      本文链接:https://www.haomeiwen.com/subject/bsbzaltx.html