Updating to the latest Carto in Tile Mill when running on an Ubuntu service

Currently there are some bug fixes in the Carto code base which isn’t in the currently released Tile Mill which I was wanting to make use of. This is the commands that are needed in case someone else needs that info when running Tile Mill as an Ubuntu Service.

cd /usr/share/tilemill
sudo npm install carto@latest

If that fails, read the error messages as some files may be in the way and npm isn’t wanting to overwrite them:

sudo rm /usr/share/tilemill/node_modules/.bin/mml2json.js
sudo rm /usr/share/tilemill/node_modules/.bin/carto

You then also need to restart Tile Mill, which if you are using the Ubuntu service, you can use the following command.

sudo restart tilemill

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.