Skip to Content
Menu
This question has been flagged
4 Replies
16561 Views

Hello,could anyone help me please ! i was facing the could not execute command 'lessc' error (i was running odoo 10 from eclipse in windows)   and then after trying to in install less via nodejs the page still not showing up properly and this is what the console shows :

019-07-31 09:29:12,316 7264 INFO Test odoo.modules.loading: 29 modules loaded in 0.14s, 0 queries
2019-07-31 09:29:12,720 7264 INFO Test odoo.modules.loading: Modules loaded.
2019-07-31 09:29:12,730 7264 INFO Test odoo.addons.base.ir.ir_http: Generating routing map
2019-07-31 09:29:12,892 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:12] "GET / HTTP/1.1" 200 -
2019-07-31 09:29:13,868 7264 WARNING Test odoo.addons.base.ir.ir_qweb.assetsbundle: 'node' is not recognized as an internal or external command,

operable program or batch file.

This error occured while compiling the bundle 'web.assets_backend' 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/src/less/variables.less
- /web/static/src/less/utils.less
- /web_editor/static/src/less/web_editor.variables.less
- /web/static/src/less/import_bootstrap.less
- /web/static/src/less/bootstrap_overridden.less
- /web/static/src/less/webclient_extra.less
- /web/static/src/less/webclient_layout.less
- /web/static/src/less/webclient.less
- /web/static/src/less/datepicker.less
- /web/static/src/less/progress_bar.less
- /web/static/src/less/dropdown.less
- /web/static/src/less/tooltip.less
- /web/static/src/less/debug_manager.less
- /web/static/src/less/control_panel.less
- /web/static/src/less/control_panel_layout.less
- /web/static/src/less/views.less
- /web/static/src/less/pivot_view.less
- /web/static/src/less/graph_view.less
- /web/static/src/less/tree_view.less
- /web/static/src/less/form_view_layout.less
- /web/static/src/less/form_view.less
- /web/static/src/less/list_view.less
- /web/static/src/less/search_view.less
- /web/static/src/less/modal.less
- /web/static/src/less/data_export.less
- /web/static/src/less/switch_company_menu.less
- /web/static/src/less/dropdown_extra.less
- /web/static/src/less/views_extra.less
- /web/static/src/less/form_view_extra.less
- /web/static/src/less/form_view_layout_extra.less
- /web/static/src/less/search_view_extra.less
- /account/static/src/less/account_reconciliation.less
- /account/static/src/less/account_journal_dashboard.less
- /base_import/static/src/less/base_import.less
- /mail/static/src/less/announcement.less
- /mail/static/src/less/client_action.less
- /mail/static/src/less/chat_window.less
- /mail/static/src/less/extended_chat_window.less
- /mail/static/src/less/composer.less
- /mail/static/src/less/chatter.less
- /mail/static/src/less/followers.less
- /mail/static/src/less/thread.less
- /mail/static/src/less/systray.less
- /payment/static/src/less/payment_acquirer.less
- /report/static/src/less/report_backend.less
- /sales_team/static/src/less/sales_team_dashboard.less
- /web_calendar/static/src/less/web_calendar.less
- /web_diagram/static/src/less/diagram_view.less
- /web_editor/static/src/less/web_editor.common.less
- /web_editor/static/src/less/web_editor.backend.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
2019-07-31 09:29:14,292 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:14] "GET /web HTTP/1.1" 200 -
2019-07-31 09:29:14,358 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:14] "GET /web/static/lib/bootstrap/less/mixins/web.assets_backend/buttons.less.css HTTP/1.1" 404 -
2019-07-31 09:29:14,821 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:14] "GET /web/static/lib/bootstrap/less/mixins/web.assets_backend/vendor-prefixes.less.css HTTP/1.1" 404 -
2019-07-31 09:29:14,822 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:14] "GET /web/static/src/less/web.assets_backend/utils.less.css HTTP/1.1" 404 -
2019-07-31 09:29:14,822 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:14] "GET /web/static/lib/bootstrap/less/web.assets_backend/variables.less.css HTTP/1.1" 404 -
2019-07-31 09:29:14,822 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:14] "GET /web_editor/static/src/less/web.assets_backend/web_editor.variables.less.css HTTP/1.1" 404 -
2019-07-31 09:29:14,831 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:14] "GET /web/static/src/less/web.assets_backend/variables.less.css HTTP/1.1" 404 -
2019-07-31 09:29:14,832 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:14] "GET /web/static/src/less/web.assets_backend/import_bootstrap.less.css HTTP/1.1" 404 -
2019-07-31 09:29:15,187 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:15] "GET /web/static/src/less/web.assets_backend/webclient_extra.less.css HTTP/1.1" 404 -
2019-07-31 09:29:15,190 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:15] "GET /web/static/src/less/web.assets_backend/webclient.less.css HTTP/1.1" 404 -
2019-07-31 09:29:15,193 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:15] "GET /web/static/src/less/web.assets_backend/tooltip.less.css HTTP/1.1" 404 -
2019-07-31 09:29:15,194 7264 INFO Test werkzeug: 127.0.0.1 - - [31/Jul/2019 09:29:15] "GET /web/static/src/less/web.asset


Avatar
Discard
Best Answer

Could you please let us know the command which you use to run Odoo?

To install less in windows:

on Windows,

-  install nodejs

- reboot (to update the PATH)

-  install less using the below command (Open Windows command as Admin):

    npm install -g less

- To check if the less is installed, in windows command write:

Lessc -v

if you got the version, then it's installed.

lessc 3.9.0 (Less Compiler) [JavaScript]


Avatar
Discard
Best Answer

To install less in windows first install node js , then after installing use npm to install less using this command in command prompt :

npm install -g less

if that dose not solve the problem install 3.0.4 lees with less-plugin-clean-css use this command:

npm install -g less@3.0.4 less-plugin-clean-css

in some cases you will need antother package manager like yarn or pnpm.

pnpm install -g less@3.0.4 less-plugin-clean-css

I hope that will fix the problem.

Avatar
Discard
Best Answer

Hello,

Try login as root ( or use sudo) and run 

apt-get install node-less

It worked well for me.

Thanks


Avatar
Discard
Author Best Answer

yess lessc is installed, but on the top of the page i m getting 

no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended)

This error occured while compiling the bundle 'web.assets_backend' 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

 

Avatar
Discard

did you solve this?

Related Posts Replies Views Activity
2
Jul 19
2265
0
Oct 21
3690
0
Aug 19
3378
3
Mar 24
17189
5
Jul 20
92360