Published
- 1 min read
run live server from npm start
The solution for this is noted below
run live server from npm start
Solution
# How do I run live-server from the command line?
# 1) Install live-server as a dev dependency:
npm i -D live-server
# 2) Add a start script to package.json:
"scripts":{
"start": "live-server --open=./index.html"
}
# Alternatively, just run:
npx live-server --open=./index.html
Try other methods by searching on the site. That is if this doesn’t work