样式错误//odoo-11社区

样式错误//odoo-11社区,odoo-11,Odoo 11,SME服务器-9.2(来自Centos-6.10)64位,使用最新的VirtualBox虚拟 2018年7月21日,安装完美,一切正常。我做了一个完整的安装文档。我使用git进行安装 8月,我用一台新机器,用同一份文件再次尝试,但收到了以下错误: * * * * * * * * * * Style error The style compilation failed, see the error below. Your recent actions may be the cause, plea

SME服务器-9.2(来自Centos-6.10)64位,使用最新的VirtualBox虚拟

2018年7月21日,安装完美,一切正常。我做了一个完整的安装文档。我使用git进行安装

8月,我用一台新机器,用同一份文件再次尝试,但收到了以下错误:

* * * * * * * * * *

Style error
The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

(b'', b'The "--no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended).
[TypeError: Object function Object() { [native code] } has no method 'assign']
')This error occured while compiling the bundle 'web.assets_common' containing:
    - /web/static/lib/bootstrap/less/variables.less
    - /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
    - /web/static/lib/bootstrap/less/mixins/buttons.less
    - /web/static/lib/bootstrap/less/mixins/clearfix.less
    - /web/static/lib/bootstrap/less/mixins/size.less
    - /web/static/src/less/variables.less
    - /web/static/src/less/utils.less
    - /web_editor/static/src/less/web_editor.variables.less
    - /web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less
    - /web/static/src/less/fonts.less
    - /web/static/src/less/navbar.less
    - /web/static/src/less/mimetypes.less
    - /web/static/src/less/modal.less
    - /web/static/src/less/animation.less
    - /web/static/src/less/rainbow.less
    - /web/static/src/less/datepicker.less
    - /web_planner/static/src/less/web_planner_common.less
    - /web_tour/static/src/less/tip.less
    - /web_tour/static/src/less/keyframes.less

* * * * * * * * * *
我可以更新原来的七月机器,一切正常,但不可能使新机器工作

我在不同的论坛上寻找,找不到解决方案

感谢您的帮助


Michel André

我也面临类似的问题,我运行了下面提到的命令并得到了解决

对于MacOs,您可以执行下面提到的命令

brew卸载--强制节点

brew安装节点

sudo npm安装-g less

brew链接--覆盖节点


使用资产运行odoo

检查您的lessc安装,这是一个基于nodejs的程序。堆栈跟踪表明nodejs存在问题。对于另一个问题,我花了很长时间,但我发现是最新版本的NPM导致了LESSC的问题。我安装了Node.js-10.5.0,之后一切正常。米歇尔·安德烈