Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

7

What does this error mean on Odoo? "Could not execute command 'lessc'"

By
Timo Goosen
on 8/18/14, 3:16 AM 31,014 views

I keep getting this error on Odoo in the top left corner of the screen when I use the website builder:

"Could not execute command 'lessc'"

23
Luigi Gregori
On 10/9/14, 3:30 AM

 

Try login as root ( or use sudo) and run 

apt-get install node-less

It worked well for me.

LG

Did you mean "sudo apt-get install node-less" ?

Fnordbedarf
on 10/29/14, 10:51 AM

Yes, sorry for type mismatch :-(

Luigi Gregori
on 10/30/14, 1:29 PM

This works for me too

August Doo
on 6/27/15, 10:13 PM

didnt helped, but after I installed blog addon as it was suggested bellow and it worked out.

Vadims Briksins
on 6/30/15, 11:20 AM

@ALL I had done the above all the things but it can not solve my Error ..

Dasadiya Chaitanya
on 10/1/15, 7:26 AM

This works for me too.

GAD Group Technology, Inc., Gregory Dover
on 10/26/15, 12:32 AM

This works for me too

Tomás Pascual
on 2/5/16, 7:26 AM
16

Axel Mendoza

--Axel Mendoza--
10203
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 10/3/15, 1:26 AM

The fix:

sudo apt-get install nodejs nodejs-legacy node-less
sudo apt-get install npm
sudo npm install -g less
sudo npm install -g less-plugin-clean-css
sudo ln -s /usr/local/bin/lessc /usr/bin/lessc
sudo ln -s /usr/bin/nodejs /usr/bin/node

After the fix you have 3 options (because a simply f5 to refresh or a server restart doesn't recompile your .less files):

1- Delete and/or Create a new Database

2- Install a module that add a new .less file to be compiled, like blog or website like was suggested here

3- Manually compile your .less files

This solved the issue for me. The fix depends of the way we want to install it: - using 'node-less' with apt-get (this automatically set the executable available) - 'less' with npm (it creates an executable under its own directory, we have to make a symbolic link to the standard bin path to be usable) By the way, you don't need to install less globally, it only changes where the lessc executable is located

Bruno PLANCHER
on 2/19/16, 6:37 AM

what if we are on a mac and dont have apt get?

Santiago EV
on 12/2/16, 7:12 AM

use brew instead of apt-get

Axel Mendoza
on 12/2/16, 2:02 PM
5
Angelo
On 8/19/14, 2:35 AM

Hi, install a Blogs module for fix the bug.

Thank you, it did helped me. (Was running odoo 9 Alpha v1 from source in PyCharm)

Vadims Briksins
on 6/30/15, 11:19 AM

Thank you...

aneesh ATEES Infomedia Pvt Ltd
on 9/18/15, 3:08 AM
1

To all of you who are encountering this problem, it is due to a problem with an old version of nodejs (shows up especially in Ubuntu 12.04). To install a stable version we use Chris Lea's repo as follows:

  • sudo apt-get install python-software-properties

  • sudo apt-add-repository ppa:chris-lea/node.js

  • sudo apt-get update

Then you install nodejs:

sudo apt-get install nodejs

You can then check version of nodejs using:

node -v

It should be at least greater than > 0.10

npm -v

Should return a version at least > 1.4

Then finally execute the following command, whick will update npm to a newer version as well as install the less plugin:

  • sudo npm install -g npm

  • sudo npm install -g less less-plugin-clean-css

Enjoy, it worked for me after searching for long hours, enjoy, it worked for me after searching for long hours,

Mustafa

I am also using 12.04 and I followed all the above steps. But still the Could not execute command 'lessc' error showing. I restarted server and postgres service. Deleted old db and created new one. Kinldy help to solve this.

sengottuvel
on 1/1/16, 6:48 AM

my node.js version is v0.10.37 npm version is 3.5.2

sengottuvel
on 1/1/16, 6:50 AM
Hello,

Yes this is a common issue with 12.04, please follow the following steps:

Please make sure you have the prerequisites in place for Odoo 8 on 12.04. You can refer to the following document http://www.serpentcs.com/serpentcs-openerp-v7-v8odoo-installation-ubuntu.

Then please follow following steps:

Then:


Then you install nodejs: 

  • sudo apt­get install ­y nodejs 

You can then check version of nodejs using: 
  • node ­v 
  • It should be at least greater than > 0.12
  • Also, npm ­v , should return a version at least > 2.0
 
Then finally execute the following command, whick will update npm to a
newer version as well as install the less plugin: 

  • sudo npm install ­g npm
  • sudo npm install ­g less less­plugin­clean­css 

In order for images to display correctly: 

  • sudo pip install ­­upgrade werkzeug

All the best,

Mustafa B. Hamad




On 1 January 2016 at 14:50, sengottuvel <sengottuvl-gmail-com@mail.odoo.com> wrote:

my node.js version is v0.10.37 npm version is 3.5.2

--
sengottuvel


Mustafa Babiker El-Siddig Mustafa Hamad
on 1/1/16, 7:22 AM
Sorry some typos:

Then please follow following steps:

Then:


Then you install nodejs: 

  • sudo apt­-get install ­-y nodejs 

You can then check version of nodejs using: 
  • node -­v 
  • It should be at least greater than > 0.12
  • Also, npm -­v , should return a version at least > 2.0
 
Then finally execute the following command, whick will update npm to a
newer version as well as install the less plugin: 

  • sudo npm install ­-g npm
  • sudo npm install -­g less less-­plugin­-clean­css 

In order for images to display correctly: 

  • sudo pip install --­­upgrade werkzeug

On 1 January 2016 at 15:22, Mustafa Hamad <mustafajava@gmail.com> wrote:
Hello,

Yes this is a common issue with 12.04, please follow the following steps:

Please make sure you have the prerequisites in place for Odoo 8 on 12.04. You can refer to the following document http://www.serpentcs.com/serpentcs-openerp-v7-v8odoo-installation-ubuntu.

Then please follow following steps:

Then:


Then you install nodejs: 

  • sudo apt­get install ­y nodejs 

You can then check version of nodejs using: 
  • node ­v 
  • It should be at least greater than > 0.12
  • Also, npm ­v , should return a version at least > 2.0
 
Then finally execute the following command, whick will update npm to a
newer version as well as install the less plugin: 

  • sudo npm install ­g npm
  • sudo npm install ­g less less­plugin­clean­css 

In order for images to display correctly: 

  • sudo pip install ­­upgrade werkzeug

All the best,

Mustafa B. Hamad




On 1 January 2016 at 14:50, sengottuvel <sengottuvl-gmail-com@mail.odoo.com> wrote:

my node.js version is v0.10.37 npm version is 3.5.2

--
sengottuvel



Mustafa Babiker El-Siddig Mustafa Hamad
on 1/1/16, 7:27 AM
0
ahmed hegazy
On 10/17/15, 9:36 AM

before install blog run this :

 apt-get -y update && apt-get -y upgrade && apt-get -y install python python-egenix-mxdatetime python-dateutil python-pybabel python-openid python-feedparser python-lxml python-libxml2 python-libxslt1 python-psycopg2 python-libxml2 python-libxslt1 python-imaging python-gdata python-ldap python-reportlab python-pyparsing python-simplejson python-pydot python-webdav graphviz python-werkzeug python-matplotlib python-vatnumber python-numpy python-pychart python-vobject python-zsi python-xlwt python-hippocanvas python-profiler python-dev python-setuptools postgresql postgresql-client-common python-yaml python-mako gcc mc python-babel python-feedparser python-reportlab-accel python-zsi python-openssl python-jinja2 python-unittest2 python-mock  python-docutils lptools make python-psutil python-paramiko poppler-utils python-pdftools antiword python-jinja2 python-requests git-core sudo python-decorator python-pypdf python-passlib xsltproc xmlstarlet python-soappy python-qrencode curl npm && curl -sL https://deb.nodesource.com/setup | bash - && apt-get -y install nodejs && npm install -g npm && npm install -g less less-plugin-clean-css

http://misnotasdelinux.blogspot.mx/2015/10/instalar-odoo-9-en-debian-8.html

0
Wassim Chaabouni
On 12/10/15, 5:56 AM

1- install node-less: apt-get install node-less

2- Restart postgresql service: sudo service postgresql restart

3- Restart the sever.

0
wizardz
On 10/2/15, 4:09 AM

It's not working here, What is with wkhtmltopdf?

Ok now it's worked, I have installed node-less and then the Module: website builder

wizardz
on 10/2/15, 4:10 AM
0
Gajanan Kathar
On 9/26/15, 8:40 AM

This error shows because of two reasons

  1. You don't install required packages and plug-ins on your ubuntu system or

  2. Install packages and plug-ins are outdated

To overcome this problem try this commands on your ubuntu terminal

  • sudo apt-get install curl

  • 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)

  • sudo npm install -g less less-plugin-clean-css

@Gajanan Kathar I had done the above all the things but it can not solve my Error ..

Dasadiya Chaitanya
on 10/1/15, 7:25 AM
0

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
2983
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 9/26/15, 9:00 AM

First Time that You see it... It's because You don't have lessc installed!

Once installed, You need to invalidate the bundle (installing any module which add less file) to generate again the bundle! 

0
Hussainar
On 12/10/15, 6:51 AM

Try this

sudo apt-get install lxc

-1
Mariusz Mizgier
On 8/18/14, 3:32 AM

I followed the instructions on the link. Not knowing where to put the path to lessc correctly, I installed less, globally as advised in the second post. sudo apt-get install npm sudo npm install lessc This breaks my Odoo's behavior: The Website does not load except for the black header bar at the top, which buttons do not perform a drop-down box.

Fnordbedarf
on 10/29/14, 10:56 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 8/18/14, 3:16 AM
Seen: 31014 times
Last updated: 12/4/16, 3:12 PM