by @kodeazy

NodeJS file cannot be loaded because running scripts is disabled.

Home » javascript » NodeJS file cannot be loaded because running scripts is disabled.

gatsby : File C:\Users\XXXX\AppData\Roaming\npm\gatsby.ps1 cannot be loaded because running scripts is disabled on this system For more information, see aboutExecutionPolicies at https:/go.microsoft.com/fwlink/?LinkID=135170.

Above problem occurs when the remote script is not trusted

After Executing the belove command in command prompt problem got resolved

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser