Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install tilelive-vector and tilelive-xray #105

Open
jimbok8 opened this issue Feb 24, 2022 · 2 comments
Open

Failed to install tilelive-vector and tilelive-xray #105

jimbok8 opened this issue Feb 24, 2022 · 2 comments

Comments

@jimbok8
Copy link

jimbok8 commented Feb 24, 2022

I used this command
npm install -g tilelive-vector tilelive-xray
and got these errors

> [email protected] install C:\Users\JimKay\Programs\node-v10.24.1-win-x64\node_modules\tilelive-vector\node_modules\mapnik
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/mapnik/v3.5.14/Release/node-v93-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI, unknown) (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.5.14/Release/node-v93-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
gypgyp ERR! find VS
 gypERR!  find VS
@mojodna
Copy link
Owner

mojodna commented Feb 24, 2022

Are you using Node 10.x or 16.x? Can you tell which version of tilelive-vector it's trying to install? (I'm trying to repro

The underlying problem is that the [email protected] (which is now old; 4.5.9 is current) dependency of tilelive-vector doesn't have binaries for Node 16 on Windows (v93 = Node 16.x; see NODE_MODULE_VERSION).

It looks like installing @mapbox/tilelive-vector should work (where there's a 4.x that supports [email protected]), but then tilelive-xray depends on the wrong module. I'll push a couple of fixes for this shortly.

@mojodna
Copy link
Owner

mojodna commented Feb 24, 2022

I misspoke. Just installing tilelive-xray (npm install -g tilelive-xray) should do the trick; it should install the correct version of tilelive-vector as a dependency, and if it doesn't, install @mapbox/tilelive-vector manually and you should be good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants