After installation run newspaper cnpm cnpm: Could not load file C: \ Users \ yizon \ AppData \ Roaming \ npm \ cnpm.ps1, since the prohibition to run a script on this system

Installation cnpm:

Elevation install g cnpm --registry = https: // registry.npm.taobao.org

After installation error: Could not load file C: \ Users \ yizon \ AppData \ Roaming \ npm \ cnpm.ps1, since the prohibition to run a script on this system

Solution: Run as Administrator power shell, then enter:

set-ExecutionPolicy RemoteSigned

Enter A, press Enter

Guess you like

Origin www.cnblogs.com/yifamily/p/11853259.html
Recommended