yarn : Could not load file C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1 because running scripts is prohibited on this system.

image.png
Open powershell, do not use cmd, it shows that there is no such command

image.png

image.png
Change the execution policy on the computer to RemoteSigned
execution: set-ExecutionPolicy RemoteSigned

image.png

View execution policy: get-ExecutionPolicy

image.png
that's it

Supongo que te gusta

Origin blog.csdn.net/qq_36538368/article/details/125300461
Recomendado
Clasificación