将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
)的版本吗?使用此作为参考。
我正在使用节点v0.12.0和npm v2.5.1。
因为您当前已经安装了版本,0.10.0
并且它符合您的版本要求。npm
如果您已经满足要求,则不会寻找最新版本。
您可以执行npm update
将其更新为最新版本。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句