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