我现在知道的最好方法是运行npm info express版本,然后手动更新每个版本的package.json。必须有更好的方法。
{
"name": "myproject",
"description": "my node project",
"version": "1.0.0",
"engines": {
"node": "0.8.4",
"npm": "1.1.65"
},
"private": true,
"dependencies": {
"express": "~3.0.3", // how do I get these bumped to latest?
"mongodb": "~1.2.5",
"underscore": "~1.4.2",
"rjs": "~2.9.0",
"jade": "~0.27.2",
"async": "~0.1.22"
}
}
答案 0 :(得分:0)
尝试修改package.json中的版本,使用*代替版本号,然后使用npm install,这应该可以解决这个问题:)