ng is not recognized as an internal or external command

0 votes

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 in Others by Soham
• 8,730 points
1,121 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 by Rahul
• 8,980 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,340 points
1,624 views
0 votes
1 answer
0 votes
1 answer

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

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

answered Feb 8 in Java by Rahul
• 8,980 points
18 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
10,856 views
0 votes
1 answer
0 votes
3 answers

ReactJS vs Angular Comparison: Which is better?

One picture, many facts How can you compare ...READ MORE

answered Aug 11, 2018 in Events & Trending Topics by slayer
• 29,310 points
400 views
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 in Others by Rahul
• 8,980 points
888 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 in Others by Rahul
• 8,980 points
1,329 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP