When I install odoo V9, it tells me: "Failed to execute the command 'lessc"?

When I try to install odoo_v9, it successfully installs and creates a demo database, which he also created, but after installing the demo database, it gives me an error like "Failed to execute the lessc command ...."

Thanks in advance.

+5
source share
2 answers
sudo apt-get install node-less 

After installation, just restart the openerp server and refresh your browser.

+6
source

This error occurs almost every time a new installation of Odoo. (Especially with Ubuntu 12.04)

  • First run these three commands in your terminal.
 sudo apt-get install python-software-properties sudo apt-add-repository ppa:chris-lea/node.js sudo apt-get update 
  1. Then you install nodejs:
 sudo apt-get install nodejs 
  1. Then you can check the nodejs version using:
 node -v 
  1. It must be at least greater than> 0.10
 npm -v 

Must return a version of at least> 1.4

  1. Then finally run the following command: whick will upgrade npm to a newer version and also install a smaller plugin:
 sudo npm install -g npm sudo npm install -g less less-plugin-clean-css 
0
source

Source: https://habr.com/ru/post/1241537/


All Articles