General

You Cannot Run This Script On The Current System Error Solution (Execution Policy Problem)

If you get error something like below on the Powershell or Command Prompt (CMD) or GIT Bash when you write yarn –version or yarn start or npm run or something like that commands.

You should use: “Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted” command.

After you use this command, you will have authorization so you can use these commands without taking errors or exception.

yarn –version
yarn : File C:\Users\aytac.agma\AppData\Roaming\npm\yarn.ps1 cannot be loaded. The file C:\Users\aytac.agma\AppData\Roaming\npm\yarn.ps1 is not digitally sign
ed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1

+ yarn –version
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

Best,
Aytac AGMA

You can share and save this page with:
Tags: , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*