blutogin
blutogin

Reputation: 23

How to run `npm update` so it updates the version numbers to the latest compatible in package.json?

I have, for instance, "@material-ui/core": "^4.11.0" in package.json and would like it to be update to latest compatible minor version, which would be "@material-ui/core": "^4.12.2" at the moment. And I would like it to be done for all dependencies.

Note that I wouldn't want to install @latest for all packages, only the wildcard compatible minor versions.

Is this possible to achieve?

How else do you force bouncing up the dependency versions? Am I missing something? I am aware that 4.12.2 is installed for ^4.11.0, but I would like it to be reflected in package.json to track updates.

Upvotes: 0

Views: 1950

Answers (1)

blutogin
blutogin

Reputation: 23

Seems to be duplicate with How to update each dependency in package.json to the latest version?.

Strange that there is no npm built-in support for this (?)

Upvotes: 1

Related Questions