Odoo Help


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.


[solved] [odoo-9] : Which lib is missing to resolve this error?

Anil R. Kesariya
on 9/18/15, 5:10 AM 6,546 views

Hi All,

When I  started new instance on my local system with v9.

I have created new database.

Database successfully created but after logged inside database Got this error.

"could not execute command lessc"

How to resolve this issue?

I would suppose to upload screen shot, but somehow I am not able to upload it. may be some issue to upload any picture here.

Error traceback:

This error occured while compiling the bundle 'web.assets_backend' containing:

- /website/static/src/less/import_bootstrap.less

- /web/static/src/less/enterprise_compatibility.less

- /web/static/src/less/utils.less

- /web/static/src/less/modal.less

- /web/static/src/less/notification.less

- /base_import/static/src/less/import.less

- /web_tip/static/src/less/tip.less

- /web_calendar/static/src/less/web_calendar.less

- /web_diagram/static/src/less/diagram_view.less

- /web_kanban/static/src/less/kanban_dashboard.less

- /web_kanban/static/src/less/kanban_view.less

- /web_settings_dashboard/static/src/less/dashboard.less

Click here for error screen shot

Thanks in adv.




Anil R. Kesariya

--Anil R. Kesariya--
| 6 5 8
Gandhinagar, India
--Anil R. Kesariya--
ERP Consultant

Key Skill
Technical & Functional Expert
Anil R. Kesariya
On 9/21/15, 4:36 AM

Hi All,

I have fixed my clean-css issue.

clean-css was not interpreated thats why all the .less file was not loaded properly.

After execution of this command now its works well.

npm install -g less-plugin-clean-css

I have setup that plugin as global and now its works perfect in my system.



This is not working for me. I installed Odoo9 with and then with this command LESS: sudo apt-get install node-clean-css sudo apt-get install node-less Then I do this: sudo npm install -g less-plugin-clean-css But it's not working, LESS error like: - /web_tip/static/src/less/tip.less - /web_calendar/static/src/less/web_calendar.less - /web_diagram/static/src/less/diagram_view.less - /web_kanban/static/src/less/kanban_dashboard.less - /web_kanban/static/src/less/kanban_view.less - /web_settings_dashboard/static/src/less/dashboard.less

on 11/20/15, 3:19 AM


| 7 7 8
Turnhout, Belgium

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

On 9/18/15, 5:31 AM

Hi Anil,

You're missing the node-less library. The fixes:

sudo apt-get install node-clean-css 
sudo apt-get install node-less

This will install both the node-less JS library and the CSS rendering which Odoo 9 needs.


@yenthe: node-less is already installed. but some how not able to install Trace : node-clean-css. Building dependency tree Reading state information... Done E: Unable to locate package node-clean-css I will try to fix this issue. Thanks.

Anil R. Kesariya
on 9/18/15, 11:47 AM

node-less is installed successfully, still having css issue. even tried with by following your installation steps. doesn't work.

Anil R. Kesariya
on 9/21/15, 3:50 AM

Answer by Gajanan Kathar was useful but need to set npm registry before update, i.e. execute following command just before bullet point 4.

npm config set registry http://registry.npmjs.org/ 

On 10/3/15, 5:30 PM

Sure you have to install some package like this: 

sudo apt-get install node-clean-css

sudo apt-get install node-less

But, according to this comment in a bug report, you have to install website_blog module too: https://github.com/odoo/odoo/issues/8676#issuecomment-142604714

It works for me.


Gajanan Kathar
On 9/26/15, 8:50 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

Thanks it worked for me!

Bernard Kipkorir Too
on 10/17/15, 7:23 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)


Asked: 9/18/15, 5:10 AM
Seen: 6546 times
Last updated: 7/22/16, 9:45 AM