There are several installation scripts and advices on how to install these components necessary for the new odoo themes. For the non-technical specialists, it is very difficult to find out, what works.
After fiddling around and not exactly knowing why some ways worked and others not, I believe the following instructions are quite fool-proof. I have successfully tested it on an Amazon EC2 Ubuntu instance as non-Root user.
The NodeJS and NPM packages in the Ubuntu 14.04 repository can not be used because they are outdated.
Follow the instructions from the NodeJS Website:
curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g npm (to update npm)
Then install Less and accessories:
sudo npm install -g less less-plugin-clean-css
Ubuntu 14.04 contains a version of Node.js in its default repositories that can be used to easily provide a consistent experience across multiple servers. The version in the repositories is 0.10.25. This will not be the latest version, but it should be quite stable.
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
you can test node by typing "node " on terminal
2. node --version
About This Community
|Asked: 3/23/15, 5:29 AM|
|Seen: 12426 times|
|Last updated: 6/9/16, 8:07 AM|