安装yarn后,使用命令启动项目时,将呈现下图。
yarn :无法加载文件d :program filesnodejsnode _ globalyarn.PS1,因为此系统禁止脚本运行。 有关详细信息,请参阅https :/go.Microsoft.com/fwlink /? LinkID=135170的about_Execution_Policies。 所在行:1个字符:1 yarn serve~~~~ category info : security error 3360 (: )、psecurityexceptionfullyqualifiederrorid
解决方法是打开powershell,以管理员身份运行----1集执行策略
重新启动就解决了!