npm outdated 不尊重 package.json 的插入符号

leb*_*olo 1 javascript node.js npm package.json

使用具有以下内容的package.json文件

"devDependencies": {
    "grunt": "^0.4.5",
    "grunt-concurrent": "^1.0.0",
    "grunt-contrib-jshint": "^0.10.0",
    "grunt-contrib-watch": "^0.6.1",
    "grunt-dev-update": "^1.1.0",
    "grunt-jasmine-node-new": "^0.3.2",
    "grunt-node-inspector": "^0.1.5",
    "grunt-nodemon": "^0.4.0",
    "grunt-npm-install": "^0.1.0"
}
Run Code Online (Sandbox Code Playgroud)

我得到一个npm outdated看起来像的输出

npm 过时的输出

为什么通缉不是 0.11.0?不"grunt-contrib-jshint": "^0.10.0"意味着任何大于或等于 0.10.0 但小于 1.0.0 ( >= 0.10.0 && < 1.0.0) 的版本?使用作为参考。

我正在使用节点 v0.12.0 和 npm v2.5.1。

Car*_*rós 5

因为您当前已安装版本0.10.0并且它符合您的版本要求。npm如果您有一个已经满足要求的版本,则不会寻找最新版本。

您可以执行npm update以将它们更新到可能的最新版本。