I'm trying to create an angular 5.2.6 app. But, when i use ng new my-app, the angular version is 5.2.0.
So : how to upgrade my app to 5.2.6 ? I didn't find a migration guide in angular's website...
Thanx for your help !
I'm trying to create an angular 5.2.6 app. But, when i use ng new my-app, the angular version is 5.2.0.
So : how to upgrade my app to 5.2.6 ? I didn't find a migration guide in angular's website...
Thanx for your help !
1.In your package.json file, edit dependencies so it is like:
"dependencies": {
"@angular/animations": "^5.2.6",
"@angular/common": "^5.2.6",
"@angular/compiler": "^5.2.6",
"@angular/core": "^5.2.6",
"@angular/forms": "^5.2.6",
"@angular/http": "^5.2.6",
"@angular/platform-browser": "^5.2.6",
"@angular/platform-browser-dynamic": "^5.2.6",
"@angular/router": "^5.2.6",
"core-js": "^2.5.3",
"rxjs": "^5.5.6",
"zone.js": "^0.8.19"
},
2.Save your file and delete node_modules folder manualy or remove node_modules by using:
rm -rf node_modules dist
or use rmdir /S/Q node_modules
dist in Windows Command Prompt; use rm -r -fo node_modules,dist
in Windows PowerShell
3.Now try:
npm install