Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
webclientubuntubugopenlinuxubuntu12.04builderwebsiteodooodooV8linu
22 Replies
113610 Views
Avatar
Timo Goosen

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'"

9
Avatar
Discard
Avatar
Luigi Gregori
Best Answer

 

Try login as root ( or use sudo) and run 

apt-get install node-less

It worked well for me.

LG

38
Avatar
Discard
Fnordbedarf

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

Luigi Gregori

Yes, sorry for type mismatch :-(

August Doo

This works for me too

Vadims Briksins

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

Dasadiya Chaitanya

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

Gregory Dover

This works for me too.

Tomás Pascual

This works for me too

Hanish Mangalasseri

this works for me also

Avatar
Axel Mendoza
Best Answer

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

22
Avatar
Discard
Bruno PLANCHER

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

Marcio Valenzuela

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

Axel Mendoza

use brew instead of apt-get

Avatar
Angelo
Best Answer

Hi, install a Blogs module for fix the bug.

6
Avatar
Discard
Vadims Briksins

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

aneesh ATEES Infomedia Pvt Ltd

Thank you...

Avatar
Mustafa Babiker El-Siddig Mustafa Hamad
Best Answer

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

3
Avatar
Discard
sengottuvel

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

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

OdooBot
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:

  • sudo apt­get install python­-software-­properties 
  • sudo apt­get install ­y curl 
  • curl ­sL https://deb.nodesource.com/setup_0.12 | sudo bash ­

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


OdooBot
Sorry some typos:

Then please follow following steps:

Then:

  • sudo apt-­get install python­-software-­properties 
  • sudo apt­-get install ­-y curl 
  • curl -­sL https://deb.nodesource.com/setup_0.12 | sudo bash ­

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:

  • sudo apt­get install python­-software-­properties 
  • sudo apt­get install ­y curl 
  • curl ­sL https://deb.nodesource.com/setup_0.12 | sudo bash ­

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



Avatar
Jérémy Kersten (jke)
Best Answer

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
Avatar
Discard
Avatar
Gajanan Kathar
Best Answer

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

0
Avatar
Discard
Dasadiya Chaitanya

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

Avatar
wizardz
Best Answer

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

0
Avatar
Discard
wizardz

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

Avatar
ahmed hegazy
Best Answer

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
Avatar
Discard
Juan Sebastián Ocampo Ospina

it worked for me. Thanks

Avatar
Wassim Chaabouni
Best Answer

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

2- Restart postgresql service: sudo service postgresql restart

3- Restart the sever.

0
Avatar
Discard
Avatar
Hussainar
Best Answer

Try this

sudo apt-get install lxc

0
Avatar
Discard
Avatar
Mariusz Mizgier
Best Answer

Check out http://askubuntu.com/questions/63099/command-not-found-when-running-lessc-from-bash - it should do the job for you.

-1
Avatar
Discard
Fnordbedarf

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.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Are the Odoo developers promoting insecure by default in their coding practices?
password postgresql open linux odoo odooV8 linu
Avatar
Avatar
2
Mar 15
6553
How do I change the font size and font in the Mass Mailing module's newsletter WYSIWYG builder/editor?
wysiwyg linux newsletter ubuntu12.04 website odoo odooV8 linu news wys ubun
Avatar
0
Nov 17
9460
Install Odoo stable on Ubuntu LTS 14.04 Solved
webclient debian open ubuntu12.04 deb odoo odooV8 odooV8_database
Avatar
Avatar
Avatar
Avatar
Avatar
7
Jan 24
17002
No verification for Odoo when installing on Debian/Ubuntu from .deb
ubuntu debian linux ubuntu12.04 apache2 odoo odooV8 od
Avatar
0
Mar 15
6423
Where is the Odoo API?
python api openerp linux ubuntu12.04 ope odoo odooV8 od linu ubunt
Avatar
0
Mar 15
5845
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now