Issue – gulp: File C:\Users\user\AppData\Roaming\npm\gulp.ps1 cannot be loaded because running scripts is disabled on this system

Issue

Solution

step 1: -Press the windows-button on your keyboard.
step 2: -Type ‘PowerShell’
step 3: -Right-click Windows PowerShell
step 4: -Click Run as Administrator
step 5: -Run the following command and confirm with ‘Y’
Try this. 

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

first run:

Get-ExecutionPolicy

then run:

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force

Leave a comment

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