I try to install Angular but after installing i got this error
ng is not recognized as an internal or external command,operable file or batch file
I installed node,npm and git I gived below comment for installing Angular.I installed after installing i give ng-v comment i found this error.
npm install -g @angular/cli
To solve the error "ng: command not found", install the angular cli package globally by running npm install -g @angular/cli@latest and restart your terminal. If the command fails, run it with sudo and make sure the correct PATH is set in your system's environment variable.
To Check Angular CLI version use ng --version or ng v or npm list -global --depth 0 commands. ng --version command returns the details of version of Angular CLI installed and in addition to that version of Angular development packages like @angular-devkit/architect,rxjs etc.. as shown below.
Use the command ng --version (or ng -v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to find out the globally installed version of Angular. Use the npm list --depth 0 to find out the list of packages installed in the current folder.
Add your node js path ex: " C:\Users\DELL\AppData\Roaming\npm" to System Variable source :follow this link
Execute below command:-
npm uninstall -g angular-cli
npm uninstall --save-dev angular-cli
npm cache clean
npm install -g @angular/cli@latest
Try out it for me it worked
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With