NPM 更新所有依赖项
2016-06-29 22:26
603 查看
Simply change every dependency's version to
After:
Of course, this is the blunt hammer of updating dependencies. It's fine if—as you said—the project is empty and nothing can break.
On the other hand, if you're working in a more mature project, you probably want to verify that there are no breaking changes in your dependencies before upgrading.
To see which modules are outdated, just run
*, then run
npm update --save.
"dependencies": { "express": "*", "mongodb": "*", "underscore": "*", "rjs": "*", "jade": "*", "async": "*" }
After:
"dependencies": { "express": "~3.2.0", "mongodb": "~1.2.14", "underscore": "~1.4.4", "rjs": "~2.10.0", "jade": "~0.29.0", "async": "~0.2.7" }
Of course, this is the blunt hammer of updating dependencies. It's fine if—as you said—the project is empty and nothing can break.
On the other hand, if you're working in a more mature project, you probably want to verify that there are no breaking changes in your dependencies before upgrading.
To see which modules are outdated, just run
npm outdated. It will list any installed dependencies that have newer versions available.
相关文章推荐
- mysql rpm包安装
- RPM(软件包管理器)-百度百科
- 人人都是产品经理
- 手动添加PopMenu出现的问题
- pm(pakacge manager)命令
- maven 使用 checkstyle findbugs pmd 代码覆盖率检测等插件的使用
- IPMI
- PMP考试总结
- RPM包的制作
- APM2.8 Rover 自动巡航车设计(超声波和红外测距仪的安装和设置)
- APM2.8 Rover 自动巡航车设计(自动巡航地面站设置)
- APM2.8 Rover 自动巡航车设计(硬件连接)
- JBPM4.4工作流引擎学习(一)
- 考取PMP的价值何在?
- 淘宝npm镜像
- pm2 自定义log, pid 等日志文件位置
- 《人人都是产品经理》阅读笔记
- 产品调研方法汇总
- "rpm -qa" C 接口的实现过程
- rhel 7 rpm 软件包管理以及yumredhat package manager