summaryrefslogtreecommitdiff
path: root/doc/setup
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2015-01-15 11:26:18 +0100
committerAntony Lesuisse <al@openerp.com>2015-01-15 11:26:18 +0100
commit09ac43ea99ddbca57cf72735975e99e54dbf7407 (patch)
tree55dbe674dd6e0f305f3bba2d5c096bca1dbc1274 /doc/setup
parentda4db6a8ae7a9a959ec7df05f45408d74eade48e (diff)
[FIX] doc lessc installation instructions
Diffstat (limited to 'doc/setup')
-rw-r--r--doc/setup/install.rst24
1 files changed, 15 insertions, 9 deletions
diff --git a/doc/setup/install.rst b/doc/setup/install.rst
index 5afc0793fcf..7b4787ac556 100644
--- a/doc/setup/install.rst
+++ b/doc/setup/install.rst
@@ -317,24 +317,30 @@ Source installation requires manually installing dependencies:
- on Linux, use your distribution's package to install nodejs and npm.
- In debian you need at least jessie, as the packaged version of npm before
- that does not work. In Ubuntu you need at least Ubuntu 14.04, as the
- packaged version of npm before that does not work. Otherwise install nodejs
- and npm manually.
-
- Once you have npm working, install less and less-plugin-clean-css.
+ In debian wheezy and Ubuntu 13.10 and before you need to install nodejs
+ manually.
.. code-block:: console
- $ sudo npm install -g less less-plugin-clean-css
+ $ wget -qO- https://deb.nodesource.com/setup | bash -
+ $ apt-get install -y nodejs
- On debian and Ubuntu you also need to set a symbolic link from noejs to
- node because the shebang line of lessc uses node.
+ Starting from jessie and Ubuntu 14.04 the distribution's package works. But
+ you may need to had a symlink as npm packages shebngs uses node whereas
+ debian uses nodejs.
.. code-block:: console
+ $ apt-get install -y npm
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
+ Once you have npm working, install less and less-plugin-clean-css.
+
+ .. code-block:: console
+
+ $ sudo npm install -g less less-plugin-clean-css
+
+
- on OS X, install nodejs via your preferred package manager (macports_,
homebrew_) then install less and less-plugin-clean-css.