-
install nvm https://github.com/creationix/nvm
-
Install node version LTS 6.9.5
nvm install --lts 6.9.5
other nvm tips:
nvm ls
nvm alias default 6.9.5
- kosmtik installed successfully with node version LTS 6.9.5 and npm version 5.6.0. so update npm:
nvm install-latest-npm
-
unsure but may need to install mapbox carto first (npm install -g @mapbox/carto)
-
install kosmtik
going inside the kosmtik directory andd then do this command:
npm -g install kosmtik
- If you get an error that kosmtik refuses to intstall a dependency with the same name as itself, then edit the package.json file and rename the name field. http://thisdavej.com/node-newbie-error-npm-refusing-to-install-package-as-a-dependency-of-itself/
Now install kosmtik-mbtiles-export plug-in (https://github.com/kosmtik/kosmtik-mbtiles-export) within the kosmtik repo:
sudo node index.js plugins --install kosmtik-mbtiles-export