Community mailing list archives

community@mail.odoo.com

Re: Odoo Team: NodeJS, Less, NPM - please communicate clear installation advice

by
bayahiassem
- 10/04/2015 17:27:10
Hi,

I'm definitely supporting Ermin request: If the nodejs version is old, the lessc version installed won't be accepted by oDoo (the bin file location is not detected by oDoo). And even if we don't see the famous "less is missing" error message anymore, we are not sure that everything is okay; in fact, in our case (working on ubuntu 12 and 14), when installing news addons, we got all sort of lessc error (file missing,...).

So, a clear installation/configuration guide (specially for the NodeJS and Less part) is really needed.

Thks,

Assem.




De : Ermin Trevisan <trevi@twanda.com>
À : Community <community@mail.odoo.com>
Envoyé le : Dimanche 4 octobre 2015 7h53
Objet : Re: Odoo Team: NodeJS, Less, NPM - please communicate clear installation advice

Thanks Antony, but it is not enough or what I meant exactly, see below:

On 03.10.2015 19:27, Antony Lesuisse wrote:
> For debian:
> 
> # wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
> # echo "deb http://nightly.odoo.com/9.0/nightly/deb/ ./" >> /etc/apt/sources.list
> # apt-get update && apt-get install odoo
> 
> Should be enough. Can somebody here confirm ?

It is nowhere documented, that nodejs/less/npm is now included in the
installer package, so this should definitely be clearly mentioned. I for
example did use the package installer, but did install nodejs/less/npm
additionally.
> 
> 
> For other platform or sourcce install it is documented here 
> https://www.odoo.com/documentation/8.0/setup/install.html Check the warning 
> about less:
> 
> In later debian (>jessie) and ubuntu (>14.04) you may need to add a symlink as 
> npm packages call node but debian calls the binary nodejs
> 
> $ apt-get install -y npm
> $ sudo ln -s /usr/bin/nodejs /usr/bin/node
> 

People are using all kind of weird installation scripts and methods for
the source install, so clear requirements definition is a must.
This documentation is not enough, one must know the supported or
required nodejs/less/npm versions. IIRC the nodejs version of Ubuntu
14.04 LTS repository does not work, I know that version 0.10 and 0.12
installed from source definitely work, but I do not know about higher
versions.
For the same reason it is good to know what path Odoo expects nodejs,
less and npm to be located.

Thanks, trevi

-- 
twanda AG
Ermin Trevisan
Artherstrasse 19
CH-6318 Walchwil
T    +41 41 758 1515
M    +41 79 208 7373
E    trevi@twanda.com
www.twanda.ch
www.twanda.ch/page/restaurant
_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe