相关疑难解决方法(0)

npm outdated 不尊重 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。

javascript node.js npm package.json

1
推荐指数
1
解决办法
307
查看次数

标签 统计

javascript ×1

node.js ×1

npm ×1

package.json ×1