I installed browser-sync using : npm install -g browser-sync as well as added the module as dev dependency using: npm i --save-dev browser-sync.
But when I try to do the following command the create file : browser-sync init , I'm getting the following error:
browser-sync : File C:\Users\aksha\AppData\Roaming\npm\browser-sync.ps1 cannot be loaded. The file
C:\Users\aksha\AppData\Roaming\npm\browser-sync.ps1 is not digitally signed. You cannot run this script on the current
system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess