简体   繁体   中英

Angular 10 is not working with windows 10

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

在此处输入图片说明

thanks advance

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 :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM