安装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之后,启动成功。