xxxxxxxxxx
in PowerShell window (was opened as administrator) write
> Set-ExecutionPolicy RemoteSigned
then choose yes
> y
xxxxxxxxxx
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
xxxxxxxxxx
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
xxxxxxxxxx
//SOLVE: cannot be loaded because running scripts is disabled on
this system
1. In cmd, (run Administrator) type "Get-ExecutionPolicy -List" (without quotes).
2. Then run "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine" (change LocalMachine with the one you work with)
xxxxxxxxxx
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
xxxxxxxxxx
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
xxxxxxxxxx
"*******!!! DO NOT CHANGE ExecutionPolicy IT IS DANGEROUS !!!*********"
Remove ng.ps1 from the directory:
'C:\Users\**USERNAME**\AppData\Roaming\npm\ '
or replace it in Run '%AppData%\npm'
Changing ExecutionPolicy may affect your security
try above action, it works for me
Have fun :)