1. Uninstall the previously installed ANGULAR/CLI
NPM uninstall-g ANGULAR-CLI
NPM Uninstall--save-dev angular-cli
NPM uninstall-g @angular/CLI
2: Remove the NPM and NPM cache folders under C:\Users\lenovo\AppData\Roaming.
3. Uninstall the latest version of node. js Download and install the installation path by default.
4. Node-v npm-v View version
5. Install typescript and typings with NPM
NPM install-g typescript typings
6. Installing ANGLUAR/CLI
NPM install-g @angular/[email protected]
Possible error messages during installation require Python and other software environment dependencies (I do not have dependent software installed, there is no related exception information during use).
7. Test NG version
Ng-v
If the installation is successful, the following information is prompted:
8. Installation is successful.
ANGULAR/CLI installation (Windows environment).