Closed bt95 closed 2 years ago
At least every major version Node changes ABI. Essentially its internal API changes, which requires recompilation of binary modules. re2
is a binary module based on a C++ library.
As per the error above, it is not sufficient to run a different version of Node in the same application directory, which was initialized by a different Node version. You should run npm i
, which, in turn, will recompile necessary modules.
Theoretically, it can happen with pure JS code as well, but usually doesn't because:
So:
npm i
with a new version of Node.node_modules
before running npm i
.I added a precompiled version for Node 17 in 1.17.0, which will be published shortly.
Thanks a lot for help and for the clear instructions provided.
Hello!
I use
re2
library in a project and we want to update to Node v17, which was released in October. When trying to build the project using Node v17 this error shows up:Thanks!