Emy
Emy

Reputation: 639

Angular 10 is not working with windows 10

Error when ( ng serve ) As it is shown in the picture

enter image description here

thanks advance

Upvotes: 1

Views: 246

Answers (1)

SaiSurya
SaiSurya

Reputation: 1116

This is the issue with the visual code terminal. Windows system is not allowing the vcode to run scripts in it's terminal. To give it access to run the scripts in the terminal you have to open vcode run as administrator. You can try running the same project in cmd then you will understand.

If run as administrator dont work then you have to change some settings in your visual studio code settings, go to File -> Preferences -> Settings -> Extensions -> Scroll down and find "Edit in settings.json"

"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"]  

Vcode Settings Reference Link

Hope this solves your issue, Happy Coding :)

Upvotes: 3

Related Questions