<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>ok : plusieurs répertoires 'node_modules’  créés par la version antérieure de Node.js</div><div><div class="preview-content"><div class="comment"><div class="comment-body markdown-body js-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><p>kosmtik<br>
bash: kosmtik: command not found</p><p><br></p><p>Le 9 janv. 2017 à 22:19, Maël REBOUX <<a href="mailto:mael.reboux@breizhpositive.bzh">mael.reboux@breizhpositive.bzh</a>> a écrit :</p></div></div></div></div><div>C’est mieux !<br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><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 face="Courier" style="font-size: 12px;"><div># en tant que root</div><div># selon <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> </div><div>curl -sL <a href="https://deb.nodesource.com/setup_6.x">https://deb.nodesource.com/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/.staging/mapnik-216d48b0</div><div> </div><div>> mapnik@3.5.14 install /usr/lib/node_modules/kosmtik/node_modules/mapnik</div><div>> node-pre-gyp install --fallback-to-build</div><div> </div><div>[mapnik] Success: "/usr/lib/node_modules/kosmtik/node_modules/mapnik/lib/binding/node-v48-linux-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="code bash"><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="code bash"><pre class="code bash">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="code bash"><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="code bash">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">osm.sanspourriel@spamgourmet.com</a> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  <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 wrap=""><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 moz-do-not-send="true" 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><br>
    </div>
    <br>
    Jean-Yvon<br>
    <br>
    <div class="moz-cite-prefix">Le 09/01/2017 à 21:45, 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:401C11C6-1C3E-408E-824D-14654928217C@breizhpositive.bzh" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div>Bonsoir</div>
      <div><br>
      </div>
      <div>J’ai ouvert une issue dédiée : <a moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" 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>
                <b>NODEJS_VERSION=6</b><b><o:p></o:p></b></span></p>
            <b> </b><b><span style="font-size: 10pt; font-family:
                Arial, sans-serif;" lang="EN-US">#see <a moz-do-not-send="true" 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></b><b><br>
            </b><b> </b><b><span style="font-size: 10pt; font-family:
                Arial, sans-serif;" lang="EN-US">curl -sL <a moz-do-not-send="true" 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></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><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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" 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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Talk-fr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Talk-fr@openstreetmap.org">Talk-fr@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/talk-fr">https://lists.openstreetmap.org/listinfo/talk-fr</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<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">https://lists.openstreetmap.org/listinfo/talk-fr</a><br></blockquote></div><br></div>_______________________________________________<br>Talk-fr mailing list<br><a href="mailto:Talk-fr@openstreetmap.org">Talk-fr@openstreetmap.org</a><br>https://lists.openstreetmap.org/listinfo/talk-fr<br></blockquote></div><br></body></html>