Open overhub-edvin opened 2 years ago
There are probably outdated deps (node-pre-gyp) in this package. Should be no problem on node.js < v15 though.
There are probably outdated deps (node-pre-gyp) in this package. Should be no problem on node.js < v15 though.
It's really odd. I just tried installing node 14.17.1
, nuking yarn.lock
and node_modules
and then running yarn
and I got the same type of build error. Again, the module builds using npm i murmurhash-native --build-from-source
on both version 14.17.1
and 16.13.1
It just seems to have problems installing when in combination with the other mods. Have you ever seen any such behavior?
I just forked this and replaced node-pre-gyp@0.17.x
with @mapbox/node-pre-gyp@1.0.7
, and then updated the require statement in index.js
to import @mapbox/node-pre-gyp
. I then pointed my project to my fork, and I'm able to get everything to install and work correctly on node@16.
I don't have time right now to test backwards compatibility with older node versions, but this does seem to be a solution in my specific case.
Thanks for the solution, I'll look into that.
I'm experiencing a strange error with
murmurhash-native
when it is installed viayarn
and is forced to be built from source usingnode-pre-gyp
.I am running on OSX Big Sur, via the latest update of
nvm
, and node16.13.1
with yarn1.22.15
. But this same exact error occurs on my docker container when building via CircleCI, so I know it is not platform specfic.If I nuke
yarn.lock
andnode_modules
and runyarn
I get the following error:If I create a new project, with a new
package.json
and only installedmurmurhash-native
, then yarn is able to install it correctly.If I install the package independently using the command
npm i murmurhash-native --build-from-source
, then it installs correctly. So I know I am able to build it on my computer.These problems started when I upgraded to node 16, since it is the new LTS build. I don't quite know what to make of it.
Thank you for your time. :)
Here are the relevant portions of my
package.json