[OSM-talk-fr] Pb installation Kosmtik

Maël REBOUX mael.reboux at breizhpositive.bzh
Dim 8 Jan 16:44:56 UTC 2017


Bonjour,

On m’a vanté les mérites de Komstik https://github.com/kosmtik/kosmtik/ 

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

-------------------------------------

# apt-get install node.js
The following additional packages will be installed:
  libjs-bowser libjs-events libjs-is-typedarray libjs-jssip libjs-merge libjs-rtcninja libjs-sdp-transform libjs-typedarray-to-buffer
  libjs-util libjs-websocket node-bowser node-contextify node-cssom node-debug node-events node-htmlparser node-is-typedarray node-merge
  node-nan node-rtcninja node-sdp-transform node-typedarray-to-buffer node-util node-websocket
The following NEW packages will be installed:
  libjs-bowser libjs-events libjs-is-typedarray libjs-jssip libjs-merge libjs-rtcninja libjs-sdp-transform libjs-typedarray-to-buffer
  libjs-util libjs-websocket node-bowser node-contextify node-cssom node-debug node-events node-htmlparser node-is-typedarray node-jsdom
  node-jsesc node-jsonparse node-jssip node-jsv node-merge node-nan node-rtcninja node-sdp-transform node-typedarray-to-buffer node-util
  node-websocket
0 upgraded, 29 newly installed, 0 to remove and 31 not upgraded.
Need to get 433 kB of archives.
After this operation, 2,724 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

# nodejs -v
v4.2.6

# apt-get upgrade npm

# npm -g install kosmtik
npm WARN deprecated carto at 0.15.3: This module is now under the @mapbox namespace: install @mapbox/carto instead
npm WARN lifecycle mapnik at 3.5.14~preinstall: cannot run in wd %s %s (wd=%s) mapnik at 3.5.14 npm install node-pre-gyp /usr/local/lib/node_modules/.staging/mapnik-b95e22e5

> mapnik at 3.5.14 install /usr/local/lib/node_modules/kosmtik/node_modules/mapnik
> node-pre-gyp install --fallback-to-build

/usr/bin/env: ‘node’: No such file or directory
/usr/local/lib
└── (empty)

npm ERR! Linux 4.4.0-57-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "-g" "install" "kosmtik"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! mapnik at 3.5.14 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the mapnik at 3.5.14 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mapnik package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs mapnik
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls mapnik
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /data/osm/npm-debug.log
npm ERR! code 1






Plus d'informations sur la liste de diffusion Talk-fr