Skip to content

Instantly share code, notes, and snippets.

@joe-oli
Created October 5, 2019 16:56
Show Gist options
  • Save joe-oli/9c491f48559132ed7ea8d702f52ea780 to your computer and use it in GitHub Desktop.
Save joe-oli/9c491f48559132ed7ea8d702f52ea780 to your computer and use it in GitHub Desktop.
install local http server
//step 1. check is server installed globally?
>npm list http-server -g
C:\Users\joe.oli\AppData\Roaming\npm
`-- (empty)
//step 2. install server
>npm install http-server -g
C:\Users\joe.oli\AppData\Roaming\npm\http-server -> C:\Users\joe.oli\AppData\Roaming\npm\node_modules\http-server\bin\http-server
C:\Users\joe.oli\AppData\Roaming\npm\hs -> C:\Users\joe.oli\AppData\Roaming\npm\node_modules\http-server\bin\http-server
+ [email protected]
added 26 packages from 28 contributors in 4.252s
//step 3. check again as per step 1, no longer empty !
>npm list http-server -g
C:\Users\joe.oli\AppData\Roaming\npm
`-- [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment