Is this the correct way updating all modules listed in my package.json file to their current version?
npm update --save
I ask because I am seeing a lot of http 304 messages in the output, suggesting resource already exists (rather than http 200). That could be its way of saying "there are no updates", but I'm not certain.
Note: the following is my package.json file after running this command. I see it added a new section "dependencies", but only 2 items suggest new versions, and seems to have copied 2. That copying behavior seems odd to me.
{
"name": "myapp",
"version": "0.1.0",
"description": "hello world",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-csslint": "~0.2.0",
"grunt-cordovacli": "~0.3.3",
"grunt-contrib-concat": "~0.3.0"
},
"dependencies": {
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-jshint": "~0.7.2",
"grunt": "~0.4.4",
"grunt-cordovacli": "~0.3.4"
}
}