[Solved] Failed to load the file C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1, because script execution is prohibited in this system.

An error is reported after executing yarn install:

Unable to load file C:\Users\Administrator\AppData\Roaming\npm\yarn.ps1, because script execution is prohibited in this system.

Solution:

Runs PowerShell as administrator (Win7 location: C:\Windows\System32\WindowsPowerShell\v1.0)

Execution: set-ExecutionPolicy RemoteSigned

Similar Posts: