使用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"
}
我得到一个npm outdated
输出,它看起来像
为什么想要而不是0.11.0?"grunt-contrib-jshint": "^0.10.0"
不是指任何大于或等于0.10.0但小于1.0.0 (>= 0.10.0 && < 1.0.0
)的版本吗?以this为参考。
我使用节点v0.12.0和NPMv2.5.1。
发布于 2015-02-23 14:36:09
因为您目前已经安装了版本0.10.0
,并且它符合您的版本要求。如果您的最新版本已经满足了需求,那么npm
就不会寻找最新的版本。
您可以执行npm update
将其更新为可能的最新版本。
https://stackoverflow.com/questions/28636506
复制相似问题