angular CLI (ng)
has different versions to be compatible with different version of node.
https://stackoverflow.com/questions/66758727/should-i-install-angular-for-every-node-version
If you use NVM to use different version of node, then each node has to install its own compatible version of angluar CLI.
To install angular CLI
https://stackoverflow.com/questions/43344600/how-to-install-a-specific-version-of-angular-with-angular-cli
npm -g install @angular/cli@1.5.*
angular CLI available version :https://www.npmjs.com/package/@angular/cli?activeTab=versions
Compatibility chart :
https://angular.io/guide/versions
No comments:
Post a Comment