Odoo Help

2

0
7 Answers
4
Avatar

Yenthe Van Ginneken Belgium

--Yenthe Van Ginneken--
25080
| 9 9 12
Turnhout, Belgium
--Yenthe Van Ginneken--


Yenthe Van Ginneken Belgium
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

2 Comments
Anil R. Kesariya (AKE) India
9/18/15, 11:47 AM

@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 (AKE) India
9/21/15, 3:50 AM

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

2
Avatar

Anil R. Kesariya (AKE) India

--Anil R. Kesariya (AKE)--
6735
| 8 7 10
Rajkot, India
--Anil R. Kesariya (AKE)--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

Upwork : https://www.upwork.com/fl/anilkesariya


Anil R. Kesariya (AKE) India
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.

Rgds,

Anil.




1 Comment
wizardz Switzerland
11/20/15, 3:19 AM

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

1

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/ 

1
Ludovic CHEVALIER France
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.

 


1
Gajanan Kathar India
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

3 Comments
Bernard Kenya
10/17/15, 7:23 AM

Thanks it worked for me!

Marcio Valenzuela P United States
12/2/16, 2:22 PM

Im on a mac, ive installed and updated them. node 7.2.0 and npm 3.10.9. I still get could not execute command lessc. Im on a mac with python 2.7.12. Please help!

Prince Caspion United States
12/2/16, 11:40 PM

@santiago EV:

Here you go:

wget -qO- https://deb.nodesource.com/setup | sudo bash -

sudo apt-get install nodejs

sudo apt install npm

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

Ask a Question
Keep Informed
2 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now