mapbox/tilemill — Issue #963: Building From Source Failure
Author: tpstigers
Created: 2011-11-29 01:06:42+00:00
State: open

I'm running into a consistent issue when building from source. I hit it first on Linux Mint 12, and again on Linux Mint 11. Thinking it was a Mint issue, I tried to build from source on a clean install of Ubuntu 11.04 and hit the same error. In all cases the error hits at the 'npm install' command from the newly-created 'tilemill' directory. Here's the pertinent section:

verbose mkdir (expected) error ENOENT, no such file or directory '/root/.npm/tilelive'
verbose mkdir done: /root/.npm/tilelive 755
ERR! Error: No compatible version found: tilelive@'>=4.0.3- <4.1.0-'
ERR! Valid install targets:
ERR! ["1.0.1","1.0.3","1.0.4","2.0.1","2.0.2","2.0.3"]
ERR! at installTargetsError (/usr/lib/node_modules/npm/lib/cache.js:424:10)
ERR! at /usr/lib/node_modules/npm/lib/cache.js:406:17
ERR! at saved (/usr/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:136:7)
ERR! at Object.cb [as oncomplete] (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
ERR! Report this *entire* log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Linux 2.6.38-13-generic
ERR! command "node" "/usr/bin/npm" "install"
ERR! cwd /home/terry/tilemill
ERR! node -v v0.6.2
ERR! npm -v 1.0.106
verbose exit [ 1, true ]

I'll cross-post it at the npm page as requested. Any ideas? In all cases I was attempting to build TileMill in a clean install in VirtualBox. I had no issues when using the installer (in Ubuntu 11.10), just when building from source.

Thanks.