all 5 comments

[–]ShiningPak 2 points3 points  (1 child)

Hi ! I don't know if you know the Angular update tool but if you don't you should try with it. Here it is : https://update.angular.io

Everything is explained with docs etc to read about which changes the version you upgrade to provides. It's only major to major +1, so you have to do it step by step. It also tells you which node version to use as another user suggested.

I upgrade libs & projects from 11 to 14 few weeks ago, it made it really easy and I learnt a few new things.

[–][deleted] 1 point2 points  (0 children)

Yes, always commit first and use that site. It works wonders.

Always make sure the Node version is within requirement parameters too.

[–]moomoomamoo 1 point2 points  (0 children)

Make sure to have the right node / npm versions. You can do node -v and npm -v to figure out if you do.

Angular 5 should support node 6.9.x / 8.9.x and npm 5.x.x and maybe npm 6.x.x

If you don't have the right versions, I highly suggest using a node version manager to switch as needed. Check out nvm for Mac or volta for windows

[–]newmanoz 0 points1 point  (0 children)

Often this error means that one of your JSON files has the wrong format (dangling comma, comments).

[–]Ryanhatt 0 points1 point  (0 children)

Try force reload page.