Commit 1572613 authored Jan 13, 2020 Verified
1 parent 813f77d commit 1572613 Copy full SHA for 1572613
File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 9
9
10
10
![ ] ( https://github.com/nodeapps/http-server/raw/master/screenshots/public.png )
11
11
12
- # Installing globally :
12
+ ## Installation :
13
13
14
- Installation via ` npm ` :
14
+ #### Globally via ` npm `
15
15
16
- npm install http-server -g
16
+ npm install --global http-server
17
17
18
- This will install ` http-server ` globally so that it may be run from the command line.
18
+ This will install ` http-server ` globally so that it may be run from the command line anywhere .
19
19
20
- ## Running on-demand:
20
+ #### Globally via Homebrew
21
+
22
+ brew install http-server
23
+
24
+ #### Running on-demand:
21
25
22
26
Using ` npx ` you can run the script without installing it first:
23
27
24
- npx http-server [path] [options]
28
+ npx http-server [path] [options]
29
+
30
+ #### As a dependency in your ` npm ` package:
31
+
32
+ npm install http-server
25
33
26
34
## Usage:
27
35
@@ -137,4 +145,4 @@ $ node bin/http-server
137
145
* Now you can visit http://localhost:8080 to view your server*
138
146
139
147
You should see the turtle image in the screenshot above hosted at that URL. See
140
- the ` ./public ` folder for demo content.
148
+ the ` ./public ` folder for demo content.
You can’t perform that action at this time.
0 commit comments