VS Code中的终端无法运行npm vue等指令,只需要用管理员模式打开Window PowerShell,输入指令:
set-ExecutionPolicy RemoteSigned
之后回车,输入a,再回车,返回VS Code中就能发现就可以了