Odoo9安装时出现could not execute command lessc

本文介绍了在安装Odoo9后遇到的启动错误couldnotexecutecommandlessc及其解决方案。通过安装less及相关插件less-plugin-clean-css,成功解决了无法解析clean-css插件的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装odoo9之后,出现could not execute command lessc错误,之前已经安装好了node.js

直接到cmd里执行D:\Python>npm install -g less

会自动安装好less

 

然后启动odoo9,数据库初始化好了之后,会报如下错误,

a.o_underline:hover {

  text-decoration: underline;

}

Unable to interpret argument clean-css - if it is a plugin (less-plugin-clean-css), make sure that it is installed under or at the same level as less

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

    - /web/static/src/less/mimetypes.less

    - /web/static/src/less/animation.less

    - /web_planner/static/src/less/web_planner_common.less

    - /web_editor/static/src/less/web_editor.less

Traceback (most recent call last):

  File "C:\Python27\lib\logging\__init__.py", line 859, in emit

    msg = self.format(record)

  File "C:\Python27\lib\logging\__init__.py", line 732, in format

    return fmt.format(record)

  File "D:\git\odoo9\openerp\netsvc.py", line 102, in format

    return logging.Formatter.format(self, record)

  File "C:\Python27\lib\logging\__init__.py", line 474, in format

    s = self._fmt % record.__dict__

UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 191500: ordinal not in range(128)

Logged from file ir_qweb.py, line 1379

> d:\git\odoo9\openerp\addons\base\ir\ir_qweb.py(1199)to_html()

-> return sep + sep.join(response)

(Pdb) 

 

仔细看Unable to interpret argument clean-css - if it is a plugin (less-plugin-clean-css), make sure that it is installed under or at the same level as less

感觉是不是少安装了less-plugin-clean-css。

然后D:\Python>npm install -g less less-plugin-clean-css之后,启动成功。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值