Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Ubuntu Server 14.04: Howto install nodejs, npm and less

By
Ermin Trevisan
on 3/23/15, 5:29 AM 12,294 views

There are several installation scripts and advices on how to install these components necessary for the new odoo themes. For the non-technical specialists, it is very difficult to find out, what works.

Should Odoo community version's navbar look like v8's (black top bar and bluish sidebar)? Or something is wrong with my installation? I used the Enterprise version and the interface looked like the one advertised by Odoo (with purple top bar). But when I use the community version, it looked different. Since I was able to launch v9 perfectly, I believe dependencies and nodejs were correctly installed, am I right?

james_p
on 10/3/15, 5:52 AM

@james_p: please do not hijack a thread with a different question. Besides that, Odoo 9.0 Enterprise has a new user responsive user interface, which is different from the old one in the community edition.

Ermin Trevisan
on 10/3/15, 6:17 AM
5

Ermin Trevisan

--Ermin Trevisan--
3524
| 6 3 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 3/23/15, 5:34 AM

After fiddling around and not exactly knowing why some ways worked and others not, I believe the following instructions are quite fool-proof. I have successfully tested it on an Amazon EC2 Ubuntu instance as non-Root user.


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  (to update npm)

Then install Less and accessories:

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

0
Santanu Singh
On 6/9/16, 8:07 AM

There are various way to do that.

Please refer following link

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


0

Atul Kumar jain

--Atul Kumar jain--
914
| 5 3 7
Indore, India
--Atul Kumar jain--

.

Atul Kumar jain
On 3/23/15, 6:28 AM

Ubuntu 14.04 contains a version of Node.js in its default repositories that can be used to easily provide a consistent experience across multiple servers. The version in the repositories is 0.10.25. This will not be the latest version, but it should be quite stable.


sudo apt-get update

sudo apt-get install nodejs

sudo apt-get install npm


you can test node by typing "node " on terminal

1. node

2. node --version

 


The versions from the ubuntu repository seemed not to work for me with the new odoo website themes. The way I have proposed works for sure.

Ermin Trevisan
on 3/24/15, 5:26 AM

Just run this " npm install less@1.5 -g " on your terminal all your problem of less css will be solved

548
on 10/7/15, 11:07 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/23/15, 5:29 AM
Seen: 12294 times
Last updated: 6/9/16, 8:07 AM