跳至内容
菜单
此问题已终结
7 回复
24867 查看

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.

Rgds,

Anil.




形象
丢弃
编写者 最佳答案

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.




形象
丢弃

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

最佳答案

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

形象
丢弃
编写者

@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.

编写者

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

最佳答案

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!

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!

@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

最佳答案

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/ 

形象
丢弃
最佳答案

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.

 


形象
丢弃
相关帖文 回复 查看 活动
0
4月 17
5062
1
1月 17
17146
1
12月 16
7590
1
4月 16
6018
2
4月 16
3051