Skip to content

Commit 5ed30b3

Browse files
committed
Improve installation instructions
1 parent 526ef78 commit 5ed30b3

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

pages/install.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,39 @@
22

33
# Download and install
44

5-
For browser-like environments: [download](https://github.com/jshint/jshint/raw/master/dist/jshint.js).
5+
JSHint runs in a number of different environments; installation is different
6+
for each.
67

7-
For Rhino: [download](https://github.com/jshint/jshint/raw/master/dist/jshint-rhino.js).
8+
### Browser-like environments
89

9-
### Node (with NPM)
10+
A standalone files is built for browser-like environments with every release.
11+
You'll find it in the `dist` directory of the download. [Download the latest
12+
release here](https://github.com/jshint/jshint/releases/latest).
13+
14+
### Rhino
15+
16+
A standalone files is built for Mozilla's [Rhino JavaScript
17+
engine](http://www.mozilla.org/rhino) with every release. You'll find it in
18+
the `dist` directory of the download. [Download the latest release
19+
here](https://github.com/jshint/jshint/releases/latest).
20+
21+
### Node.js
1022

1123
![NPM version](https://badge.fury.io/js/jshint.png)
1224

13-
From your command line run the following command (add `-g` to install globally on your system):
25+
Each release of JSHint is published to [npm](https://npmjs.org), the package
26+
manager for [the Node.js platform](https://nodejs.org).
27+
28+
You may **install it globally** using the following command:
29+
30+
npm install -g jshint
31+
32+
After this, you can use the `jshint` command-line interface.
33+
34+
It is common to install JSHint as a development dependency within an existing
35+
Node.js project:
1436

15-
npm install jshint
37+
npm install --save-dev jshint
1638

1739
### Plugins for text editors and IDEs
1840

0 commit comments

Comments
 (0)