\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. code example

Example 1: \ng.ps1 cannot be loaded because running scripts is disabled on this system.

Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "RemoteSigned"

Example 2: File C:\Users\Tariqul\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system.

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Example 3: npm ng.ps1 cannot be loaded because running scripts is disabled on this system grepper

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser