Commit a6f082c0 a6f082c01f5e403e273ada87b83648d7f8eb983b by Nicolas Perriault

added installation instructions through npm

1 parent 4f105a91
...@@ -10,6 +10,8 @@ FAQ ...@@ -10,6 +10,8 @@ FAQ
10 :local: 10 :local:
11 :backlinks: top 11 :backlinks: top
12 12
13 .. _faq_node:
14
13 .. index:: Node.js 15 .. index:: Node.js
14 16
15 Is CasperJS a `node.js <http://nodejs.org/>`_ library? 17 Is CasperJS a `node.js <http://nodejs.org/>`_ library?
......
...@@ -38,7 +38,7 @@ Installation of both PhantomJS and CasperJS can be achieved using Homebrew_, a p ...@@ -38,7 +38,7 @@ Installation of both PhantomJS and CasperJS can be achieved using Homebrew_, a p
38 Above all, don't forget to update Formulaes:: 38 Above all, don't forget to update Formulaes::
39 39
40 $ brew update 40 $ brew update
41 41
42 For the 1.1 development version (recommended):: 42 For the 1.1 development version (recommended)::
43 43
44 $ brew install casperjs --devel 44 $ brew install casperjs --devel
...@@ -46,13 +46,30 @@ For the 1.1 development version (recommended):: ...@@ -46,13 +46,30 @@ For the 1.1 development version (recommended)::
46 For the 1.0.x stable version:: 46 For the 1.0.x stable version::
47 47
48 $ brew install casperjs 48 $ brew install casperjs
49 49
50 If you have already installed casperjs and want to have the last release (stable|devel), use ``upgrade``:: 50 If you have already installed casperjs and want to have the last release (stable|devel), use ``upgrade``::
51 51
52 $ brew upgrade casperjs 52 $ brew upgrade casperjs
53 53
54 Upgrade only update to the latest release branch (1.0.x|1.1-dev). 54 Upgrade only update to the latest release branch (1.0.x|1.1-dev).
55 55
56 Installing from npm
57 -------------------
58
59 .. versionadded:: 1.1-beta3
60
61 You can install CasperJS using `npm <http://npmjs.org/>`_::
62
63 $ npm install -g casperjs
64
65 .. note::
66
67 The `-g` flag makes the `casperjs` executable available system-wide.
68
69 .. warning::
70
71 While CasperJS is installable via npm, :ref:`it's not a NodeJS package <faq_node>`.
72
56 .. index:: git 73 .. index:: git
57 74
58 Installing from git 75 Installing from git
......