kosmtik / kosmtik

Make maps with OpenStreetMap and Mapnik
Other
719 stars 84 forks source link

Fail instalation Node 16.14 Ubuntu 20 #342

Open gunyakov opened 2 years ago

gunyakov commented 2 years ago

I try to install but get this errors. Any suggestion?

npm ERR! code 1 npm ERR! path /home/goodzon/Projects/kosmtik/node_modules/mapnik npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! make: вход в каталог «/home/goodzon/Projects/kosmtik/node_modules/mapnik/build» npm ERR! CXX(target) Release/obj.target/mapnik/src/mapnik_logger.o npm ERR! make: вход в каталог «/home/goodzon/Projects/kosmtik/node_modules/mapnik/build» npm ERR! CXX(target) Release/obj.target/mapnik/src/mapnik_logger.o npm ERR! make: выход из каталога «/home/goodzon/Projects/kosmtik/node_modules/mapnik/build» npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/goodzon/Projects/kosmtik/node_modules/mapnik/lib/binding/mapnik.node --module_name=mapnik --module_path=/home/goodzon/Projects/kosmtik/node_modules/mapnik/lib/binding' (1) npm ERR! make: выход из каталога «/home/goodzon/Projects/kosmtik/node_modules/mapnik/build» npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@0.6.39 npm ERR! node-pre-gyp info using node@16.14.2 | linux | x64 npm ERR! node-pre-gyp info check checked for "/home/goodzon/Projects/kosmtik/node_modules/mapnik/lib/binding/mapnik.node" (not found) npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.7.2/node-v93-linux-x64-Release.tar.gz npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.7.2/node-v93-linux-x64-Release.tar.gz npm ERR! node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.7.2/node-v93-linux-x64-Release.tar.gz npm ERR! node-pre-gyp ERR! Pre-built binaries not found for mapnik@3.7.2 and node@16.14.2 (node-v93 ABI, glibc) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.7.2/node-v93-linux-x64-Release.tar.gz npm ERR! node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.7.2/node-v93-linux-x64-Release.tar.gz npm ERR! node-pre-gyp ERR! Pre-built binaries not found for mapnik@3.7.2 and node@16.14.2 (node-v93 ABI, glibc) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp http Connection closed while downloading tarball file npm ERR! gypgyp infoinfo it worked if it ends withit worked if it ends with ok npm ERR! ok npm ERR! gypgyp infoinfo usingusing node-gyp@9.0.0 npm ERR! node-gyp@9.0.0 npm ERR! gypgyp infoinfo usingusing node@16.14.2 | linux | x64 npm ERR! node@16.14.2 | linux | x64 npm ERR! gypgyp infoinfo okok

gunyakov commented 2 years ago

Same problem I found there

https://github.com/kosmtik/kosmtik/issues/335

gunyakov commented 2 years ago

Ok. Looks like npm module wasn't update more than 4 years. Its mean that npm module have old dependencies. You have 2 choices to solve it. Or switch to node v.9.3.0 using nvm or clone this repository by git clone and after run command npm install.