Can not execute npm package in Powershell?
If you meet error when execute a node.js command(e.g. pm2)
1 | pm2 : File C:\Program Files\nodejs\pm2.ps1 cannot be loaded. The file C:\Program Files\nodejs\pm2.ps1 is not digitally signed. You cannot run |
Soluation:
Execute the following cmd first, then try again.
1 | Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass |
enjoy ;)
Still happen?
Please check Windows Environment variants PATH , make sure npm install path is included.