index.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. You need to install the *Less CSS* compiler to run this snippet
  2. * on Linux, use your distribution's package manager to install nodejs and npm.
  3. * In debian wheezy and Ubuntu 13.10 and before you need to install nodejs manually:
  4. .. code-block:: console
  5. $ wget -qO- https://deb.nodesource.com/setup | bash -
  6. $ apt-get install -y nodejs
  7. * In later debian (>jessie) and ubuntu (>14.04) you may need to add a symlink as npm packages call ``node`` but debian calls the binary ``nodejs``
  8. .. code-block:: console
  9. $ apt-get install -y npm
  10. $ sudo ln -s /usr/bin/nodejs /usr/bin/node
  11. * Once npm is installed, use it to install less and less-plugin-clean-css:
  12. .. code-block:: console
  13. $ sudo npm install -g less less-plugin-clean-css
  14. * on OS X, install nodejs via your preferred package manager (`homebrew <http://brew.sh/>`_, `macports <https://www.macports.org/>`_) then install less and less-plugin-clean-css:
  15. .. code-block:: console
  16. $ sudo npm install -g less less-plugin-clean-css
  17. * on Windows, `install nodejs <http://nodejs.org/download/>`_, reboot (to update the `PATH`) and install less and less-plugin-clean-css:
  18. .. code-block:: ps1
  19. C:\> npm install -g less less-plugin-clean-css