Skip to content

Commit 1572613

Browse files
authoredJan 13, 2020
Update installation methods
1 parent 813f77d commit 1572613

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed
 

‎README.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,27 @@
99

1010
![](https://github.com/nodeapps/http-server/raw/master/screenshots/public.png)
1111

12-
# Installing globally:
12+
## Installation:
1313

14-
Installation via `npm`:
14+
#### Globally via `npm`
1515

16-
npm install http-server -g
16+
npm install --global http-server
1717

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.
1919

20-
## Running on-demand:
20+
#### Globally via Homebrew
21+
22+
brew install http-server
23+
24+
#### Running on-demand:
2125

2226
Using `npx` you can run the script without installing it first:
2327

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
2533

2634
## Usage:
2735

@@ -137,4 +145,4 @@ $ node bin/http-server
137145
*Now you can visit http://localhost:8080 to view your server*
138146

139147
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.

0 commit comments

Comments
 (0)
Please sign in to comment.