Skip to content

npm install fails at mapnik dependency #25

Open

Description

@eldang

I just tried to install this tool but got a series of errors from the npm installer. Here's the first part:

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.6.2/node-v59-darwin-x64-Release.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for mapnik@3.6.2 and node@9.3.0 (node-v59 ABI) (falling back to source compile with node-gyp)

AFAICT, the rest are consequences of failure to install mapnik.

Activity

  1. eldang commented on Dec 19, 2017

    @eldang
    Author

    I tried installing mapnik separately first, which gets me around the first roadblock, but fails later in the process. Meanwhile, npm still tries to install mapnik and fails, apparently because it's looking for version 3.6.2 whereas the version installed from mapnik.com is 3.0.16.

  2. zilvinelis commented on Feb 8, 2018

    @zilvinelis

    Hi @eldang, if you're working on Windows, please see 'Depends' section in node-mapnik readme file.
    As windows support for mapnik has been dropped link, we are stuck to using v.8 version of node.js, because binaries for v.9 and later versions are not provided.
    By the way, if you want to use different versions of Node.js on your machine, please take a look at nvm manager link.

    P.S. I was able to successfully install spritezero-cli using Node.js v.8.9.4

  3. eldang commented on Feb 8, 2018

    @eldang
    Author

    Thanks, @zilvinelis . I'm on a Mac, but am using node v.9.5.0 . I'll see if I can install nvm, node v.8.xx and then spritezero-cli; if it works then I'll submit a PR to warn upfront about this in the README.

  4. AntonERG commented on Mar 30, 2018

    @AntonERG

    @eldang, was you able to fix this? I'm getting the same issue

  5. eldang commented on Mar 30, 2018

    @eldang
    Author

    I'm sorry @AEiosApp - I ended up not having time, having meanwhile found that this wasn't the tool I needed anyway.

  6. salmau commented on Apr 13, 2018

    @salmau

    I've got the same issue and using the version 8.9.4 fixes it

  7. thoober commented on Nov 15, 2018

    @thoober

    @AEiosApp Did you ever solve this? I am stuck in the same place as you are. I personally did a 10x version install found this dependency issue, uninstalled and installed of 8.9.4. Still getting the exact same error. Any help would be appreciated.

  8. melroy89 commented on Dec 23, 2018

    @melroy89
    > node-pre-gyp install --fallback-to-build
    
    node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.6.2/node-v67-linux-x64-Release.tar.gz 
    node-pre-gyp ERR! Pre-built binaries not found for mapnik@3.6.2 and node@11.3.0 (node-v67 ABI) (falling back to source compile with node-gyp) 
    node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.6.2/node-v67-linux-x64-Release.tar.gz 
    node-pre-gyp ERR! Pre-built binaries not found for mapnik@3.6.2 and node@11.3.0 (node-v67 ABI) (falling back to source compile with node-gyp) 
    /bin/sh: mapnik-config: opdracht niet gevonden
    gyp: Call to 'mapnik-config --cflags' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
    

    Aggh!! This is because of the mapnik dependency package!

  9. cdavis4 commented on Jun 15, 2020

    @cdavis4

    nothing previously suggested worked for me on mac Catalina or Win10 to avoid the mapnik failure except to use this fork https://www.npmjs.com/package/@beyondtracks/spritezero-cli. 2 days to troubleshoot. ~ms to make spritesheet :)

  10. mirkoclemente commented on Jun 23, 2020

    @mirkoclemente

    @cdavis4 Thank you for sharing!

  11. bahung1221 commented on Dec 23, 2020

    @bahung1221

    @cdavis4 , thank you so much!
    Two hours passed and I still can't install spritezero-cli on macOs 11 using node 10 and node 12 but the folk you mention above saved me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions