ng is not recognized as an internal or external command

+1 vote

By running Windows 7 Professional 32bit, I tried running npm install -g angular-cli both under normal and admin. 2016-06-23_14h46_40

I also tried adding it to the Environment Variables under PATH:

(C:\Users\Administrator\AppData\Roaming\npm\node_modules\angular-cli\bin\ng) , with no success also.

2016-06-23_14h56_48

What am I doing wrong?

Feb 11, 2022 in Others by Soham
• 9,710 points
16,519 views

1 answer to this question.

0 votes

I solved this problem in accordance with the figure as mentioned below:

run in cmd

npm install -g @angular/cli

Afterwhich:-

Open in Windows 10) Control Panel\All Control Panel Items\System or accordance with the figure

 

Step 1:

enter image description here

step 2 :

enter image description here

Step3:

enter image description here

Step4:

enter image description here

Step 5: Include the missing ng path

enter image description here

Mentioned below is a new environment variable that you need add:

C:\Users\PK\AppData\Roaming\npm\node_modules\@angular\cli\bin

To conclude, please restart all opened command prompts and try again.

answered Feb 11, 2022 by Rahul
• 9,680 points

Related Questions In Others

0 votes
1 answer

'git rev-parse HEAD' is not recognized as an internal or external command

Hi@akhtar, I also faced the same problem. You ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,460 points
4,095 views
0 votes
1 answer

'adb' is not recognized as an internal or external command, operable program or batch file

Set the path of adb into System ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
7,129 views
0 votes
1 answer

could not find module "@angular-devkit/build-angular"

The mode must be changed to Dev ...READ MORE

answered Feb 8, 2022 in Java by Rahul
• 9,680 points
7,054 views
0 votes
1 answer

Angular 9 + CLI (TypeScript) - How to stop generating .spec.ts test files

If you're using v6 and need to ...READ MORE

answered Jun 13, 2022 in TypeSript by Nina
• 3,060 points
3,413 views
+1 vote
8 answers

How can I implement process.env in Angular 5 environment?

Users do not have access to process.env ...READ MORE

answered Apr 3, 2018 in DevOps & Agile by DareDev
• 6,890 points
13,122 views
0 votes
1 answer
0 votes
1 answer

ERROR:'keytool' is not recognized as an internal or external command, operable program or batch file

Check if the directory and the keytool ...READ MORE

answered Feb 18, 2022 in Others by Rahul
• 9,680 points
8,735 views
0 votes
1 answer

'npm' is not recognized as internal or external command, operable program or batch file

To your existing lines of code, include ...READ MORE

answered Feb 10, 2022 in Others by Rahul
• 9,680 points
11,689 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP