npm live-server security/policy error

If you’re setting up your development environment on your windows machine for the first time, you may encounter the same security policy issue I bumped into. ( PSSecurityException )

The lazy way to remedy the issue:
run this command in power shell.

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Javascript開発中にブラウザーを毎回F5でリフレッシュしてコードのアップデートをするのが面倒ということで、npmのlive-serverを使うことに。
Windowsユーザーならたぶんみんなが当たるポリシーエラー。

簡単な解決方法は上記のコマンドをPowerShellで実行するのみ。
詳細なもっとセキュリティを考慮した設定についてはMicrosoftの公式ドキュメントの参照を推奨。