我使用 Yeoman 来创建和管理我的应用程序;创建应用程序后,在应用程序的文件夹中安装了几个 node_modules (bower, grunt, grunt-cli ...)
如果我希望所有这些节点模块都更新到各自的最新版本,我该怎么办?
现在我手动进入节点模块的文件夹并运行
npm update
逐个; 但我想知道是否有更好的方法来做到这一点......
Yeoman 在项目的根文件夹中创建一个 package.json;这是文件内容:
{
"name": "webapp",
"version": "2.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "0.4.2-0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-coffee": "0.7.0",
"grunt-contrib-uglify": "0.2.4",
"grunt-contrib-compass": "0.5.0",
"grunt-contrib-jshint": "~0.4.1",
"grunt-contrib-cssmin": "~0.6.0",
"grunt-contrib-connect": "~0.2.0",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-contrib-imagemin": "~0.1.3",
"grunt-contrib-livereload": "~0.1.2",
"grunt-rev": "~0.1.0",
"grunt-usemin": "~0.1.10",
"grunt-regarde": "~0.1.1",
"grunt-mocha": "~0.3.0",
"grunt-open": "~0.2.0",
"grunt-svgmin": "~0.1.0",
"grunt-concurrent": "~0.1.0",
"matchdep": "~0.1.1",
"grunt-ember-templates": "0.4.7",
"grunt-neuter": "0.5.0"
},
"engines": {
"node": ">=0.8.0"
}
}
但是如果我运行 npm update,它会说没有“存储库字段”