Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Mapnik arm64 binary not accessible on arm64 darwin #158

@hallahan

Description

@hallahan

I'm not able to install this module, as the mapnik dependency is failing.

M1 Macbook
Node v16.16.0

npm i --location=global @mapbox/mapbox-tile-copy

Doesn't find mapnik.node, as it's not there

npm ERR! node-pre-gyp info check checked for "/Users/nick/.volta/tools/image/node/16.16.0/lib/node_modules/@mapbox/mapbox-tile-copy/node_modules/mapnik/lib/binding/mapnik.node" (not found)

Binary forbidden on S3

npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/mapnik/v4.5.9/Release/darwin-arm64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 403 Forbidden on https://mapbox-node-binary.s3.amazonaws.com/mapnik/v4.5.9/Release/darwin-arm64.tar.gz 
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for mapnik@4.5.9 and node@16.16.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) 
npm ERR! node-pre-gyp WARN Hit error response status 403 Forbidden on https://mapbox-node-binary.s3.amazonaws.com/mapnik/v4.5.9/Release/darwin-arm64.tar.gz 

Then gyp fails

npm ERR! /bin/sh: mapnik-config: command not found
npm ERR! gyp: Call to 'mapnik-config --cflags' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1

2022-08-04T18_21_41_266Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions