<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Bonsoir</div><div><br></div><div>J’ai ouvert une issue dédiée : <a href="https://github.com/kosmtik/kosmtik/issues/212">https://github.com/kosmtik/kosmtik/issues/212</a></div><div><br></div><div>Qui a été vite fermée car effectivement il y avait 2 versions de Node.js qui cohabitaient sur mon Ubuntu 16.04</div><div>Mais j’ai continué à écrire dedans car j’ai tout nettoyé et (je pense) refais une clean install… sans succès.</div><div><br></div><div>Je crois que l’erreur suivante est :</div><div><pre>/usr/bin/env: ‘node’: No such file or directory
/usr/local/lib
└── (empty)</pre><div>Node.js serait-il mal installé ?</div></div><div>La seule bonne façon serait celle décrite ici : <a href="https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions">https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions</a> ?</div><div><br></div><div><br></div><br><blockquote type="cite"><span style="color: rgb(127, 127, 127);"><b>De: </b></span><a href="mailto:osm.sanspourriel@spamgourmet.com">osm.sanspourriel@spamgourmet.com</a><br></blockquote><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(127, 127, 127, 1.0);"><b>Objet: </b></span><span style="font-family:'Helvetica';"><b>Rép : [OSM-talk-fr] Pb installation Kosmtik</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(127, 127, 127, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica';">8 janvier 2017 20:40:52 UTC+1<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(127, 127, 127, 1.0);"><b>À: </b></span><span style="font-family:'Helvetica';"><a href="mailto:talk-fr@openstreetmap.org">talk-fr@openstreetmap.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(127, 127, 127, 1.0);"><b>Répondre à: </b></span><span style="font-family:'Helvetica';">Discussions sur OSM en français <<a href="mailto:talk-fr@openstreetmap.org">talk-fr@openstreetmap.org</a>><br></span></div><br>Visiblement si tu la version 4, tu n'as pas la dernière version.<br><div bgcolor="transparent" text="#000000"><p>> Soit je m’y prend très mal, soit il y a des non-dits dans la
documentation ;)<br>
L'un n'exclut pas l'autre :-D.</p><p>N'hésite pas à ajouter un -y (--yes) pour ne pas avoir à
répondre.</p><p>Je pense que tu as oublié de mettre à jour ton système :</p><p class="MsoNormal">#ou 7<span style="font-size: 10pt; font-family: Arial, sans-serif;" lang="EN-US"><br>
NODEJS_VERSION=6<o:p></o:p></span></p>
<span style="font-size: 10pt; font-family: Arial, sans-serif;" lang="EN-US">#see <a class="moz-txt-link-freetext" href="https://github.com/nodesource/distributions">https://github.com/nodesource/distributions</a><br>
#ne pas hésiter à regarder le contenu avec n'exécuter !<o:p></o:p></span><br>
<span style="font-size: 10pt; font-family: Arial, sans-serif;" lang="EN-US">curl -sL
<a class="moz-txt-link-freetext" href="https://deb.nodesource.com/setup_$">https://deb.nodesource.com/setup_$</a>{NODEJS_VERSION}.x | sudo bash -<o:p></o:p></span><span style="font-size: 10pt; font-family: Arial, sans-serif;" lang="EN-US"><br>
sudo apt-get install --yes nodejs<o:p></o:p></span><span style="font-size: 10pt; font-family: Arial, sans-serif;" lang="EN-US"></span><p>Les avertissements sur @mapbox namespace sont normaux (ils n'ont
pas publié tous les paquets qui vont bien).<br>
</p>
<pre wrap="">> <a class="moz-txt-link-abbreviated" href="mailto:mapnik@3.5.14">mapnik@3.5.14</a> install /usr/local/lib/node_modules/kosmtik/node_modules/mapnik
node-pre-gyp install --fallback-to-build
</pre><p>Là encore erreur normale ;-)</p>
<pre wrap="">> /usr/bin/env: ‘node’: No such file or directory
if ! [ -e /usr/bin/node ] : then
sudo ln -s `which nodejs`
fi
</pre>
Alors on est sur Ubuntu et pas Debian ? Oui <a href="http://deb.nodesource.com">deb.nodesource.com</a>
marche pour Debian, Ubuntu et OSX.<br>
<br>
Bonne mise à jour de la documentation et des scripts d'installation.<br>
Bonne erreurs suivantes !<br>
<br>
Jean-Yvon<br>
<br>
<br>
<div class="moz-cite-prefix">Le 08/01/2017 à 17:44, Maël REBOUX -
<a class="moz-txt-link-abbreviated" href="mailto:mael.reboux@breizhpositive.bzh">mael.reboux@breizhpositive.bzh</a> a écrit :<br>
</div>
<blockquote cite="mid:E7A70CE3-6799-44B3-BBC0-FEE425262E42@breizhpositive.bzh" type="cite">
<pre wrap="">Bonjour,
On m’a vanté les mérites de Komstik <a class="moz-txt-link-freetext" href="https://github.com/kosmtik/kosmtik/">https://github.com/kosmtik/kosmtik/</a>
Mais impossible de l’installer.
Soit je m’y prend très mal, soit il y a des non-dits dans la documentation ;)
Il y a bien une alerte dans la doc demandant à avoir la dernière version de Node.js mais je pense que les commandes suivantes font le job, non ?
cdt,
Maël
</pre>
</blockquote>
<br>
</div></blockquote></div><br></body></html>