当前位置:网站首页>node工程中package.json文件作用是什么?里面的^尖括号和~波浪号是什么意思?
node工程中package.json文件作用是什么?里面的^尖括号和~波浪号是什么意思?
2022-07-05 01:04:00 【魏波-】
1、package.json文件的作用是什么?
package.json是包的说明文件,主要有以下3个作用:
(1)相当于你本地项目的一个文档说明。
(2)允许你指定你项目中所使用的node包的版本。
(3)构建你的项目更加容易,便于给其他人共享。
2、package.json文件中^尖括号和~波浪号是什么意思?
根据package文件作用的第二条可知:该文件中指定了项目中所使用的node包的版本,在package.json里面dependencies依赖包的版本号前面的符号有两种,一种是~,一种是^。
(1)^表示:匹配最近的一个大版本比如1.0.2 将会匹配到1.x.x,但不包括2.x.x
(2)~表示:匹配最近的小版本比如~1.0.2将会匹配1.0.x版本,但不匹配1.1.0
PS:软件版本号x.y.z的含义:
z :表示一些小的bugfix, 更改z的号,
y :表示一些大的版本更改,比如一些API的变化
x :表示一些设计的变动及模块的重构之类的,会升级x版本号
边栏推荐
- ||Interview questions you will encounter
- Playwright recording
- 大专学历,33岁宝妈又怎样?我照样销售转测试,月入13k+
- What you learned in the eleventh week
- Global and Chinese markets for industrial X-ray testing equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- Check if this is null - checking if this is null
- Grabbing and sorting out external articles -- status bar [4]
- [circuit design] optocoupler use and circuit design summary
- Deux nombres se remplacent
- Chia Tai International Futures: what is the master account and how to open it?
猜你喜欢

There is a new Post-00 exam king in the testing department. I really can't do it in my old age. I have

Two numbers replace each other
![[wave modeling 3] three dimensional random real wave modeling and wave generator modeling matlab simulation](/img/22/6d3867015811aae29b8a7df5ee3d0b.png)
[wave modeling 3] three dimensional random real wave modeling and wave generator modeling matlab simulation
![[wave modeling 1] theoretical analysis and MATLAB simulation of wave modeling](/img/c4/46663f64b97e7b25d7222de7025f59.png)
[wave modeling 1] theoretical analysis and MATLAB simulation of wave modeling

leetcode518,377

【海浪建模1】海浪建模的理论分析和matlab仿真

ROS command line tool

分布式BASE理论

Visual explanation of Newton iteration method

程序员SQL数据脚本编码能力弱,BI做不出来怎么办?
随机推荐
Sorting selection sorting
Talking about JVM 4: class loading mechanism
[Yocto RM]10 - Images
Basic operations of database and table ----- delete index
TS quick start - functions
Discrete mathematics: reasoning rules
Recursive execution mechanism
What if the programmer's SQL data script coding ability is weak and Bi can't do it?
Open3d uses GICP to register point clouds
College degree, what about 33 year old Baoma? I still sell and test, and my monthly income is 13K+
Actual combat simulation │ JWT login authentication
Senior Test / development programmers write no bugs? Qualifications (shackles) don't be afraid of mistakes
【大型电商项目开发】性能压测-性能监控-堆内存与垃圾回收-39
[wave modeling 3] three dimensional random real wave modeling and wave generator modeling matlab simulation
Arbitrum: two-dimensional cost
每日刷题记录 (十三)
视频网站手绘
Getting started with Paxos
那些一门心思研究自动化测试的人,最后都怎样了?
Call Huawei order service to verify the purchase token interface and return connection reset