I copied package.json from another project and now want to bump all of the dependencies to their latest versions since this is a fresh project and I don\'t mind
Solution without additional packages
Change every dependency's version to *:
"dependencies": {
"react": "*",
"react-google-maps": "*"
}
Then run npm update --save.
Some of your packages were updated, but some not?
"dependencies": {
"react": "^15.0.1",
"react-google-maps": "*"
}
This is the tricky part, it means your local version of "react" was lower than the newest one. In this case npm downloaded and updated "react" package. However your local version of "react-google-maps" is the same as the newest one.
If you still want to "update" unchanged *, you have to delete these modules from node_modules folder.
e.g. delete node_modules/react-google-maps.
Finally run again npm update --save.
"dependencies": {
"react": "^15.0.1",
"react-google-maps": "^4.10.1"
}
Do not forget to run npm update --save-dev if you want to update development dependencies.