[Node.js]23. Level 4: Semantic versioning
2024-10-20 03:21:09
Update the versions on your dependencies to be a little more flexible, adding the ~
in front of your versions.
package.json {
"name": "My Awesome Node App",
"version": "1",
"dependencies": {
"connect": "2.2.1",
"underscore": "1.3.3"
}
}
Answer:
{
"name": "My Awesome Node App",
"version": "1",
"dependencies": {
"connect": "~2.2.1",
"underscore": "~1.3.3"
}
} //~2.2.1 --> >=2.2.1 > 2.3.0
//~2.2 --> >=2.2 < 3.0.0
//~2 --> >=2 < 3.0.0
最新文章
- bzoj 1798 [Ahoi2009]Seq 维护序列seq
- CF402E Strictly Positive Matrix 传递闭包用强连通分量判断
- thymeleaf模板引擎shiro集成框架
- (二)、Struts第二天
- Java多线程学习笔记(一)——Thread类中方法介绍
- JPush简单Java服务端案例实现
- Spring配置属性文件
- 二叉搜索树 (BST) 的创建以及遍历
- win8.1下无法运行vc++6.0的解决方法
- Docker最全教程之树莓派和Docker(十五)
- Python交互图表可视化Bokeh:3. 散点图
- 深入理解Java虚拟机二之Java内存区域与内存溢出异常
- 一个程序如何在调试时退出调试或退出while循环
- mysql优化之使用iotop+pt-ioprofile定位具体top io文件
- 定位cpu内存问题
- 『PyTorch』第十一弹_torch.optim优化器
- PAT L3-008 喊山(广搜)
- go数据类型之基本类型
- Activiti - 新一代的开源BPM引擎
- B - Bridging signals (LIS)
热门文章
- euclidea 3.0 全三星 攻略
- Codeforces Round #228 (Div. 1) C. Fox and Card Game 博弈
- Codeforces Round #228 (Div. 1) B. Fox and Minimal path 构造
- UVALive 6661 Equal Sum Sets
- windows下tomcat的安装配置
- flex socket policy
- 《TCP/IP具体解释卷2:实现》笔记--IP:网际协议
- BTA 常问的 Java基础40道常见面试题及详细答案
- KJHttp框架使用讲解
- ExtJs 起始日期 结束日期 验证