解决:vs code 自带终端运行不了yarn

310 阅读1分钟

进入C:\Windows\System32\WindowsPowerShell\v1.0,找到powershell,以管理员身份打开

image.png

输入set-ExecutionPolicy RemoteSigned,再输入y

image.png

重启vs code

输入yarn,木有报错啦~~ image.png