2

I am trying to run ng serve in Windows 10 environment inside my angular project but it returns the error listed below:

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

I am inside below folder

C:\Users...\AppData\Roaming\npm\angular-hello-world>ng serve

What am I doing wrong here.

I am a newbie so easy clear steps would be helpful. Thanks.

6
  • try npm start or install it globally like npm install -g @angular/cli Commented Jan 18, 2018 at 15:45
  • Why are you running inside AppData? Commented Jan 18, 2018 at 15:45
  • WHere should i run this from? Commented Jan 18, 2018 at 15:47
  • THank you that worked. @smnbbrv Commented Jan 18, 2018 at 15:48
  • 1
    @LucyJones, AppData is a hidden folder meant to store software settings, i.e. globally installed npm packages, and such. It's not a directory I recommend using for development purposes. Commented Jan 18, 2018 at 16:06

1 Answer 1

1

Looks like it is just not installed globally.

Try npm start to go on without global installation or simply install it globally: npm install -g @angular/cli

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.