-
Notifications
You must be signed in to change notification settings - Fork 38
Failed to install on macOS #88
Comments
It seems this is an issue with the upgrading of node and npm. |
I tried uninstalling and installing node/npm as advised in the linked thread and still have this issue. Getting the following error:
|
+1 |
For anyone still encountering this issue, one way to fix it is to (temporarily) downgrade your version of node to 6 or lower, or use clone this pull request instead: #91 |
FWIW I've been working on a newer actively developed Node S2 that we're using over at Radar: https://github.com/radarlabs/s2 It's built on the N-API so we support Node 10 and above (we return S2 IDs as BigInts, thus the requirement, otherwise Node 8 and above would be fine), whereas this lib needs some changes in the V8 call sites to be able to support higher versions. We've tested building on OS X and the official docker node images (Linux), and it's in use in production, at peak 10k QPS. |
This is what I get today:
|
Failed to install on macOS, using NodeJS (7.1.0) and npm (4.0.2) installed via Homebrew (upgraded npm after brew install).
node-pre-gyp ERR! UNCAUGHT EXCEPTION node-pre-gyp ERR! stack Error: Cannot find module 'internal/fs' node-pre-gyp ERR! stack at Function.Module._resolveFilename (module.js:472:15) node-pre-gyp ERR! stack at Function.Module._load (module.js:420:25) node-pre-gyp ERR! stack at Module.require (module.js:500:17) node-pre-gyp ERR! stack at require (internal/module.js:20:19) node-pre-gyp ERR! stack at evalmachine.<anonymous>:17:20 node-pre-gyp ERR! stack at Object.<anonymous> (/Users/.../server/aroundme/node_modules/s2/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:8) node-pre-gyp ERR! stack at Module._compile (module.js:573:32) node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:582:10) node-pre-gyp ERR! stack at Module.load (module.js:490:32) node-pre-gyp ERR! stack at tryModuleLoad (module.js:449:12) node-pre-gyp ERR! System Darwin 16.1.0 node-pre-gyp ERR! command "/usr/local/Cellar/node/7.1.0/bin/node" "/Users/.../server/aroundme/node_modules/s2/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /Users/.../server/aroundme/node_modules/s2 node-pre-gyp ERR! node -v v7.1.0 node-pre-gyp ERR! node-pre-gyp -v v0.5.31 node-pre-gyp ERR! This is a bug in
node-pre-gyp`.node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR! https://github.com/mapbox/node-pre-gyp/issues
aroundme@1.0.0 /Users/.../server/aroundme
└── (empty)
npm WARN aroundme@1.0.0 No repository field.
npm WARN aroundme@1.0.0 No license field.
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/bin/npm" "install" "s2"
npm ERR! node v7.1.0
npm ERR! npm v4.0.2
npm ERR! code ELIFECYCLE
npm ERR! s2@0.5.0 install:
node-pre-gyp install --fallback-to-build
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the s2@0.5.0 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.`
The text was updated successfully, but these errors were encountered: