<div dir="ltr"><div><div>Mon kosmtik est installé en "non global", donc pas de commande komstik pour moi mais.<br><br></div>Je le lance depuis son dossier avec: node index.js ...<br><br></div>Je suis sous ubuntu 16.04<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">Le 9 janvier 2017 à 22:52, Maël REBOUX <span dir="ltr"><<a href="mailto:mael.reboux@breizhpositive.bzh" target="_blank">mael.reboux@breizhpositive.bzh</a>></span> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>ok : plusieurs répertoires 'node_modules’ créés par la version antérieure de Node.js</div><div><div class="m_5621796519624638646preview-content"><div class="m_5621796519624638646comment"><div class="m_5621796519624638646comment-body m_5621796519624638646markdown-body m_5621796519624638646js-preview-body" style="min-height:256px"><p>Après nettoyage maintenant tout est dans /usr/lib/node_modules/</p><p>usr/lib/node_modules# npm ls -G --depth=0<br>
/usr/lib<br>
├── kosmtik@0.0.13<br>
├── npm@3.10.10<br>
└── npm-check-updates@2.8.9</p><p>Mais rien de plus dans le bash</p><span class=""><p>kosmtik<br>
bash: kosmtik: command not found</p><p><br></p></span><div><div class="h5"><p>Le 9 janv. 2017 à 22:19, Maël REBOUX <<a href="mailto:mael.reboux@breizhpositive.bzh" target="_blank">mael.reboux@breizhpositive.<wbr>bzh</a>> a écrit :</p></div></div></div></div></div></div><div><div class="h5"><div>C’est mieux !<br><blockquote type="cite"><div style="word-wrap:break-word"><div>Il faut faire comme ça pour avoir une version 6 de Node.js</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font style="font-size:12px" face="Courier"><div># en tant que root</div><div># selon <a href="https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions" target="_blank">https://nodejs.org/en/<wbr>download/package-manager/#<wbr>debian-and-ubuntu-based-linux-<wbr>distributions</a></div><div> </div><div>curl -sL <a href="https://deb.nodesource.com/setup_6.x" target="_blank">https://deb.nodesource.com/<wbr>setup_6.x</a> | sudo -E bash -</div><div>apt-get install -y nodejs</div><div> </div><div>nodejs -v</div><div>v6.9.4</div><div> </div><div>find / -name "nodejs"</div><div>/usr/bin/nodejs</div><div>/usr/share/doc/nodejs</div><div>/usr/share/nodejs</div><div>/usr/include/nodejs</div><div>/usr/lib/nodejs</div><div> </div><div>cd /usr/local/lib/</div><div> </div><div>npm install -g npm-check-updates</div><div> </div><div>npm ls -G --depth=0</div><div>/usr/local/lib</div><div>└── npm-check-updates@2.8.9</div><div> </div><div>npm install -g @mapbox/carto </div><div>npm -g install kosmtik</div><div>npm WARN deprecated carto@0.15.3: This module is now under the @mapbox namespace: install @mapbox/carto instead</div><div>npm WARN lifecycle mapnik@3.5.14~preinstall: cannot run in wd %s %s (wd=%s) mapnik@3.5.14 npm install node-pre-gyp /usr/lib/node_modules/.<wbr>staging/mapnik-216d48b0</div><div> </div><div>> mapnik@3.5.14 install /usr/lib/node_modules/kosmtik/<wbr>node_modules/mapnik</div><div>> node-pre-gyp install --fallback-to-build</div><div> </div><div>[mapnik] Success: "/usr/lib/node_modules/<wbr>kosmtik/node_modules/mapnik/<wbr>lib/binding/node-v48-linux-<wbr>x64/mapnik.node" is installed via remote</div><div>/usr/lib</div><div>└─┬ kosmtik@0.0.13 </div><div> ├─┬ carto@0.15.3 </div><div> │ ├── mapnik-reference@8.5.6 </div></font></div></blockquote><div><pre class="m_5621796519624638646code m_5621796519624638646bash"><span style="font-family:Helvetica">Par contre, il n’apparaît pas dans la liste des modules ?</span></pre></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><pre class="m_5621796519624638646code m_5621796519624638646bash"><pre class="m_5621796519624638646code m_5621796519624638646bash">npm ls -G --depth=0
/usr/local/lib
├── @mapbox/carto@0.16.3
└── npm-check-updates@2.8.9</pre></pre></blockquote><div><pre class="m_5621796519624638646code m_5621796519624638646bash"><font face="Helvetica">Et si je tape kosmtik pour le lancer…</font></pre></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><pre class="m_5621796519624638646code m_5621796519624638646bash">kosmtik
bash: kosmtik: command not found</pre></blockquote><div><br></div><div>Une histoire de path ?</div><div><br></div><br><div><div>Le 9 janv. 2017 à 21:56, <a href="mailto:osm.sanspourriel@spamgourmet.com" target="_blank">osm.sanspourriel@spamgourmet.<wbr>com</a> a écrit :</div><br class="m_5621796519624638646Apple-interchange-newline"><blockquote type="cite">
<div bgcolor="transparent" text="#000000"><p>Si j'ai demandé si tu étais sur Ubuntu c'est que nodejs s'appelle
node sur Debian mais nodejs sur Ubuntu, comme dit hier, essaye :</p>
<pre><b>if ! [ -e /usr/bin/node ] : then
sudo ln -s `which nodejs`
fi</b></pre>
Je ne sais quelle est la bonne installation, je sais juste que la
mienne marche ;-)<br>
Disclaimer : pour Lyrk/Imposm, pas testé pour Kosmtik, mais ça ne
devrait rien changer.<br>
<br>
Oui je me suis inspiré de notes sur la toile, effectivement de <a href="https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions" target="_blank">https://nodejs.org/en/<wbr>download/package-manager/#<wbr>debian-and-ubuntu-based-linux-<wbr>distributions</a>
?
<div><br>
</div>
<br>
Jean-Yvon<br>
<br>
<div class="m_5621796519624638646moz-cite-prefix">Le 09/01/2017 à 21:45, Maël REBOUX -
<a class="m_5621796519624638646moz-txt-link-abbreviated" href="mailto:mael.reboux@breizhpositive.bzh" target="_blank">mael.reboux@breizhpositive.bzh</a> a écrit :<br>
</div>
<blockquote type="cite">
<div>Bonsoir</div>
<div><br>
</div>
<div>J’ai ouvert une issue dédiée : <a href="https://github.com/kosmtik/kosmtik/issues/212" target="_blank">https://github.com/kosmtik/<wbr>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" target="_blank">https://nodejs.org/en/<wbr>download/package-manager/#<wbr>debian-and-ubuntu-based-linux-<wbr>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" target="_blank">osm.sanspourriel@spamgourmet.<wbr>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" target="_blank">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" target="_blank">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>
<b>NODEJS_VERSION=6</b><b><u></u><u></u></b></span></p>
<b> </b><b><span style="font-size:10pt;font-family:Arial,sans-serif" lang="EN-US">#see <a class="m_5621796519624638646moz-txt-link-freetext" href="https://github.com/nodesource/distributions" target="_blank">https://github.com/nodesource/<wbr>distributions</a><br>
#ne pas hésiter à regarder le contenu avec n'exécuter !<u></u><u></u></span></b><b><br>
</b><b> </b><b><span style="font-size:10pt;font-family:Arial,sans-serif" lang="EN-US">curl -sL <a class="m_5621796519624638646moz-txt-link-freetext" href="https://deb.nodesource.com/setup_$" target="_blank">https://deb.nodesource.com/<wbr>setup_$</a>{NODEJS_VERSION}.x
| sudo bash -<u></u><u></u></span></b><span style="font-size:10pt;font-family:Arial,sans-serif" lang="EN-US"><b><br>
</b><b> sudo apt-get install --yes nodejs</b><u></u><u></u></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>> <a class="m_5621796519624638646moz-txt-link-abbreviated" href="mailto:mapnik@3.5.14" target="_blank">mapnik@3.5.14</a> install /usr/local/lib/node_modules/<wbr>kosmtik/node_modules/mapnik
node-pre-gyp install --fallback-to-build
</pre><p>Là encore erreur normale ;-)</p>
<pre>> /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/" target="_blank">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="m_5621796519624638646moz-cite-prefix">Le 08/01/2017 à 17:44, Maël
REBOUX - <a class="m_5621796519624638646moz-txt-link-abbreviated" href="mailto:mael.reboux@breizhpositive.bzh" target="_blank">mael.reboux@breizhpositive.bzh</a>
a écrit :<br>
</div>
<blockquote type="cite">
<pre>Bonjour,
On m’a vanté les mérites de Komstik <a class="m_5621796519624638646moz-txt-link-freetext" href="https://github.com/kosmtik/kosmtik/" target="_blank">https://github.com/kosmtik/<wbr>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>
<br>
<fieldset class="m_5621796519624638646mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Talk-fr mailing list
<a class="m_5621796519624638646moz-txt-link-abbreviated" href="mailto:Talk-fr@openstreetmap.org" target="_blank">Talk-fr@openstreetmap.org</a>
<a class="m_5621796519624638646moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/talk-fr" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk-fr</a>
</pre>
</blockquote>
<br>
</div>
______________________________<wbr>_________________<br>Talk-fr mailing list<br><a href="mailto:Talk-fr@openstreetmap.org" target="_blank">Talk-fr@openstreetmap.org</a><br><a href="https://lists.openstreetmap.org/listinfo/talk-fr" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk-fr</a><br></blockquote></div><br></div>______________________________<wbr>_________________<br>Talk-fr mailing list<br><a href="mailto:Talk-fr@openstreetmap.org" target="_blank">Talk-fr@openstreetmap.org</a><br><a href="https://lists.openstreetmap.org/listinfo/talk-fr" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk-fr</a><br></blockquote></div><br></div></div></div><br>______________________________<wbr>_________________<br>
Talk-fr mailing list<br>
<a href="mailto:Talk-fr@openstreetmap.org">Talk-fr@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-fr" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk-fr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Christian Quest - OpenStreetMap France</div></div>
</div>