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

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

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.

What am I doing wrong?

Feb 11 in Others by
• 9,330 points
5,535 views

1 answer to this question.

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:

step 2 :

Step3:

Step4:

Step 5: Include the missing ng path

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
• 9,240 points

Related Questions In Others

  • All categories
  • Apache Kafka (84)
  • Apache Spark (596)
  • Azure (131)
  • Big Data Hadoop (1,907)
  • Blockchain (1,673)
  • C# (124)
  • C++ (268)
  • Career Counselling (1,060)
  • Cloud Computing (3,356)
  • Cyber Security & Ethical Hacking (145)
  • Data Analytics (1,266)
  • Database (853)
  • Data Science (75)
  • DevOps & Agile (3,500)
  • Digital Marketing (111)
  • Events & Trending Topics (28)
  • IoT (Internet of Things) (387)
  • Java (1,178)
  • Kotlin (3)
  • Linux Administration (384)
  • Machine Learning (337)
  • MicroStrategy (6)
  • PMP (423)
  • Power BI (516)
  • Python (3,154)
  • RPA (650)
  • SalesForce (92)
  • Selenium (1,569)
  • Software Testing (56)
  • Tableau (608)
  • Talend (73)
  • TypeSript (124)
  • Web Development (2,999)
  • Ask us Anything! (66)
  • Others (1,214)
  • Mobile Development (46)

Subscribe to our Newsletter, and get personalized recommendations.

Already have an account? Sign in.

How do you fix scripts is not recognized as an internal or external command?

To solve the error "react-scripts is not recognized as an internal or external command, operable program or batch file", open your terminal in your project's root directory and install the react-scripts package by running npm install react-scripts and clear your npm cache if necessary. Copied!

How do you fix node is not recognized as an internal or external command operable program or batch file?

'node' is not recognized as an internal or external command, operable program or batch file ❓ [How to Solve].
Open Control Panel -> System and Security -> System -> Advanced System Settings -> Environment Variables..
In "User variables" or "System variables" find variable PATH and add node. ... .
Restart your IDE or computer..

Where is not recognized as an internal or external command?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.

Why npm is not recognized in CMD?

The error “npm is not recognized as an internal or external command” error may occur because either the npm is not installed or it is not added to the windows path. To resolve this error, the first solution is to install Node. js on Windows as Node. js is equipped with npm by default.

Chủ đề