콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
19986 화면

i installed odoo v9 in ubuntu 12.04

used .deb file for odoo installation

after that odoo theme not render properly and it give following error  

/usr/bin/env : node: No such file or directory in ovoo v9

after i follow this question

and give command

ln -s /usr/bin/nodejs /usr/bin/node

so it gives following error

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

- /website/static/src/less/import_bootstrap.less

- /web/static/src/less/variables.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

i check for nodejs version is

nodejs -v it return v0.10.25


how can i solve this error

아바타
취소
베스트 답변

See https://www.odoo.com/forum/help-1/question/9-0-cluttered-user-web-interface-problems-with-nodejs-npm-and-less-91647  for help to properly install nodejs and less.

아바타
취소
작성자

thanks it works for me

베스트 답변

The link in the previous answer is 404 here's what I found that worked for me on Ubuntu 14.04. I copy and pasted the steps one at a time to get things working. 


The NodeJS and NPM packages in the Ubuntu 14.04 repository can not be used because they are outdated.

Follow the instructions from the NodeJS Website:

curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g npm

Then install Less and accessories:

 sudo npm install -g less less-plugin-clean-css

As you can see, I install version 0.10 of the deb and not anything else.

아바타
취소

this saved me much time in 2021,for future folks, make sure you specify the less version as less 3 or 4 are not odoo compatibe

sudo npm install -g less@2 less-plugin-clean-css

베스트 답변

Option 1 mention in the following link worked for me. 

http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/


Use apt-get to install the build-essential package:

sudo apt-get install build-essential checkinstall

Employ a similar process to get libssl-dev:

sudo apt-get install libssl-dev

You can install and update Node Version Manager, or nvm, by using cURL:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash

You will be asked to close and reopen the terminal. To verify that nvm has been successfully installed after you reopen the terminal, use:

command -v nvm

That command will output nvm if the installation worked.

To download, compile and install the latest version of Node:

nvm install 5.0

In any new shell, you’ll need to tell nvm which version to use:

nvm use 5.0

To set a default Node.js version to be used in any new shell, use the alias default:

nvm alias default node

아바타
취소
관련 게시물 답글 화면 활동
2
11월 15
2977
0
10월 15
2676
3
6월 16
6385
Theme 해결 완료
2
11월 24
706
0
10월 24
483