tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.12k stars 527 forks source link

Cannot find module 'compress' #276

Closed thanhleviet closed 13 years ago

thanhleviet commented 13 years ago

Hello i have been trying to install tilemill on Ubuntu 10.10 but no luck. i followed the intrucstion on tilemill.com and everything went well. Untill i started the tilemill (i.e ./tilemill.js), the message below displayed:

node.js:63 throw e; ^ Error: Cannot find module 'compress' at loadModule (node.js:275:15) at require (node.js:411:14) at Object. (/home/thanhlv/Desktop/tilemill/lib/node/tilelive/mbtiles.js:5:16) at Module._compile (node.js:462:23) at Module._loadScriptSync (node.js:469:10) at Module.loadSync (node.js:338:12) at loadModule (node.js:283:14) at require (node.js:411:14) at Object. (/home/thanhlv/Desktop/tilemill/lib/node/tilelive/mappool.js:4:15) at Module._compile (node.js:462:23)

springmeyer commented 13 years ago

hey ninomax, sorry about the trouble.

Can you tell me:

  1. What version, method you used to install tilemill (from git or the download at tilemill.com)
  2. in your tilemill directory do you have a 'lib/node/compress/' folder?
  3. if #2 is true then what is inside?

One thing to try would be to clear out the compress install and then try again:

rm -r lib/node/compress/
rm -r modules/node-compress
./ndistro
thanhleviet commented 13 years ago

Hi sprengmyer Thanks for a quick response.

  1. i installed tilemill from git
  2. There is not that folder in tilemill.
  3. dont know as #2 is false. Should i remove tilemill and re-install?

Thanks

Thanh

On Sat, Mar 12, 2011 at 11:08 AM, springmeyer < reply@reply.github.com>wrote:

hey ninomax, sorry about the trouble.

Can you tell me:

  1. What version, method you used to install tilemill (from git or the download at tilemill.com)
  2. in your tilemill directory do you have a 'lib/node/compress/' folder?
  3. if #2 is true then what is inside?

One thing to try would be to clear out the compress install and then try again:

rm -r lib/node/compress/ rm -r modules/node-compress ./ndistro

https://github.com/mapbox/tilemill/issues/276#comment_862991

thanhleviet commented 13 years ago

furthermore, node-compress also does not exist in modules folder. Thanh

2011/3/12 Lê Viết Thanh lethanhx2k@gmail.com

Hi sprengmyer Thanks for a quick response.

  1. i installed tilemill from git
  2. There is not that folder in tilemill.
  3. dont know as #2 is false. Should i remove tilemill and re-install?

Thanks

Thanh

On Sat, Mar 12, 2011 at 11:08 AM, springmeyer < reply@reply.github.com>wrote:

hey ninomax, sorry about the trouble.

Can you tell me:

  1. What version, method you used to install tilemill (from git or the download at tilemill.com)
  2. in your tilemill directory do you have a 'lib/node/compress/' folder?
  3. if #2 is true then what is inside?

One thing to try would be to clear out the compress install and then try again:

rm -r lib/node/compress/ rm -r modules/node-compress ./ndistro

https://github.com/mapbox/tilemill/issues/276#comment_862991

mlaloux commented 13 years ago

same think in Mac OS X Snow Leopard $ ./tilemill.js Creating mapfile dir /Users/Shared/telechargement/11_03_11/tilemill/files/.cache Creating export dir /Users/Shared/telechargement/11_03_11/tilemill/files/export

node.js:63 throw e; ^ Error: Cannot find module 'compress' at loadModule (node.js:275:15) at require (node.js:411:14) at Object. (/Users/Shared/telechargement/11_03_11/tilemill/lib/node/tilelive/mbtiles.js:5:16) at Module._compile (node.js:462:23) at Module._loadScriptSync (node.js:469:10) at Module.loadSync (node.js:338:12) at loadModule (node.js:283:14) at require (node.js:411:14) at Object. (/Users/Shared/telechargement/11_03_11/tilemill/lib/node/tilelive/mappool.js:4:15) at Module._compile (node.js:462:23)

springmeyer commented 13 years ago

Sorry, I see the problem now. I forgot to remove a dependency on compress in tilelive. So, this is fixed now in tilelive, which tilemill's ndistro script pulls dynamically. So, to fix this you should be able to do (in your tilemill checkout):

rm -r lib/node/tilelive/
rm -r lib/node/mapnik/
rm -r modules/tilelive.js
rm -r modules/node-mapnik
./ndistro
thanhleviet commented 13 years ago

Thanks springmeyer Tilemile start fine now. Thanh

On Sun, Mar 13, 2011 at 1:26 AM, springmeyer < reply@reply.github.com>wrote:

Sorry, I see the problem now. I forgot to remove a dependency on compress in tilelive. So, this is fixed now in tilelive, which tilemill's ndistro script pulls dynamically. So, to fix this you should be able to do (in your tilemill checkout):

rm -r lib/node/tilelive/
rm -r lib/node/mapnik/
rm -r modules/tilelive.js
rm -r modules/node-mapnik
./ndistro

https://github.com/mapbox/tilemill/issues/276#comment_864081