package.json文件中的新标记^ [英] New mark ^ in package.json file

查看:191
本文介绍了package.json文件中的新标记^的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在上次npm更新之后,我发现某些软件包版本以^开头.我找不到有关它的任何信息,因为搜索引擎过滤了吸引符号.因此,它看起来像:

After last npm update, i found that some package versions started with ^. I can't found any information about it, because of filtering suck signs by search engines. So, it looks like:

"grunt-autoprefixer": "^0.4.2",
"grunt-bower-install": "^0.7.0",
"grunt-concurrent": "^0.4.3",
"grunt-contrib-clean": "~0.5.0",

有些旧的~.我将不胜感激,对此不胜感激.

Some, are old ~. I will be grateful for any likes or information about that.

我建议它表明巫婆的包裹已经更新.

I have a suggestion that it indicates witch packages was updated.

推荐答案

插入符号,[...]会将您更新为 最新的主要版本(第一个数字). ^ 1.2.3将匹配 任何1.x.x版本(包括1.3.0),但都将在2.0.0版本上保留.

The caret, [...] will update you to the most recent major version (the first number). ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0.

http://fredkschott.com/post /2014/02/npm-no-longer-defaults-to-tildes/

这篇关于package.json文件中的新标记^的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆