priore

[OSX] Launch a temporary HTTP mini server

May 7th, 2020
218
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > sudo npm cache clean -f
  2. > brew update
  3. > brew upgrade node
  4. > npm install -g npm
  5. > npm install http-server -g
  6.  
  7. # go to the folder where the pages are to be launched (.html)
  8.  
  9. > http-server
RAW Paste Data