专业的编程技术博客社区

网站首页 > 博客文章 正文

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

baijin 2024-11-17 06:59:53 博客文章 2 ℃ 0 评论

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 //切换

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表