mapbox / node-s2

bindings for s2 in node
88 stars 38 forks source link

Installation fails with "primordials is not defined" #95

Open tkurki opened 2 years ago

tkurki commented 2 years ago

Tried in Docker via docker run -it --rm node bash and on MacOS #88.

npm ERR! node-pre-gyp info using node-pre-gyp@0.5.31
npm ERR! node-pre-gyp info using node@18.7.0 | linux | x64
npm ERR! node-pre-gyp ERR! UNCAUGHT EXCEPTION 
npm ERR! node-pre-gyp ERR! stack ReferenceError: primordials is not defined
npm ERR! node-pre-gyp ERR! stack     at evalmachine.<anonymous>:47:5
npm ERR! node-pre-gyp ERR! stack     at Object.<anonymous> (/foo/node_modules/@mapbox/s2/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:8)
npm ERR! node-pre-gyp ERR! stack     at Module._compile (node:internal/modules/cjs/loader:1120:14)
npm ERR! node-pre-gyp ERR! stack     at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
npm ERR! node-pre-gyp ERR! stack     at Module.load (node:internal/modules/cjs/loader:998:32)
npm ERR! node-pre-gyp ERR! stack     at Module._load (node:internal/modules/cjs/loader:839:12)
npm ERR! node-pre-gyp ERR! stack     at Module.require (node:internal/modules/cjs/loader:1022:19)
npm ERR! node-pre-gyp ERR! stack     at require (node:internal/modules/cjs/helpers:102:18)
npm ERR! node-pre-gyp ERR! stack     at Object.<anonymous> (/foo/node_modules/@mapbox/s2/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:3:27)
npm ERR! node-pre-gyp ERR! stack     at Module._compile (node:internal/modules/cjs/loader:1120:14)
npm ERR! node-pre-gyp ERR! System Linux 5.10.47-linuxkit
npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/foo/node_modules/@mapbox/s2/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /foo/node_modules/@mapbox/s2
npm ERR! node-pre-gyp ERR! node -v v18.7.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.5.31
npm ERR! node-pre-gyp ERR! This is a bug in `node-pre-gyp`.