Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

run live server from npm start

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"
}
Comment

install live-server

yarn global add live-server
Comment

PREVIOUS NEXT
Code Example
Shell :: intellij goto line 
Shell :: bash try catch 
Shell :: arch linux 
Shell :: zsh: command not found: n 
Shell :: vim cant open file for writing 
Shell :: ssh-keygen and ssh-copy-id 
Shell :: update linux command 
Shell :: Port 3000 is already in use, but when I try to kill nothing is found 
Shell :: change the file type of multiple files once in windows 
Shell :: rollback git 
Shell :: boot repair linux 
Shell :: How can i rename my local master branch to main ? 
Shell :: python win32gui 
Shell :: connect to specific wifi device linux 
Shell :: delete local branch git 
Shell :: using github personal github token when cloning a repo 
Shell :: gitignroe remove folder 
Shell :: sqlmap post injection 
Shell :: how to run shell script in linux 
Shell :: shared folder virtualbox ubuntu 
Shell :: file explorer shortcut 
Shell :: git delete all merged branches 
Shell :: string manipulation in shell 
Shell :: pipe shell output to vim 
Shell :: wkhtmltopdf javascript 
Shell :: github commit author name 
Shell :: install fontforge linux 
Shell :: install cmake debian 
Shell :: bash grep find lines that start with word 
Shell :: npm bootstrap 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =