liveserver npm code example Example 1: npm live-server npm install -g live-server Example 2: live-server command live-server public --port=8090