0

We are migrating couple of years old project to latest one. Package.JSON refers to older version of packages.

"@angular/animations": "^4.4.3", "@angular/cdk": "^2.0.0-beta.10", "@angular/common": "^4.0.0" 

Is there any mechanism we can put @latest to each version and then execute NPM Update?

"@angular/animations": "@latest", "@angular/cdk": "@latest", "@angular/common": "@latest", 
1

1 Answer 1

1

You can change each to "*" and delete the node_modules folder and do npm install.

You should be prepared to fix breaking changes from multiple packages at the same time.

Normally, you should do one at a time, so it is easier to trace breakages and so you know at least what caused it.

If you attempt this, you should make sure you change the versions back to "^X.X.X" in the package.json file. Auto-updating to latest can and will definitely break things over time.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.