Reputation: 639
Error when ( ng serve ) As it is shown in the picture
thanks advance
Upvotes: 1
Views: 246
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"]
Hope this solves your issue, Happy Coding :)
Upvotes: 3