Muthu
Muthu

Reputation: 928

Executing 'ng serve' command throws 'Access is denied' error

I am facing an issue since morning. When enter ng serve command to run the angular project, I am getting Access is denied error. The same issue is occurred when executing the grunt commands too. Any idea on this?

The projects were working correctly until yesterday. I have attached the screenshot for your reference.

enter image description here

Upvotes: 0

Views: 3048

Answers (2)

user27521193
user27521193

Reputation: 1

In my case I was getting this error when I installed npm i -g @angular/cli and run the ng serve command. So I restart my system. Now it's working for me.

Upvotes: 0

mutantkeyboard
mutantkeyboard

Reputation: 1724

Make sure you don't have ng serve already running there.

You can do Ctrl + Alt + Del and kill any NodeJS instance you find.

Then try again.

If that doesn't work, check your folder permissions, and make sure you have a correct access rights to that folder.

Upvotes: 0

Related Questions