laverdet / node-fibers

Fiber/coroutine support for v8 and node.
MIT License
3.56k stars 224 forks source link

Missing binary error #444

Open palash2601 opened 4 years ago

palash2601 commented 4 years ago

I have been getting below error when trying to execute wdio v6 testcases

couldn't load fibers package for node v10 and above

To narrow down the issue I am trying to run the simple sleep.js script which is provided in fibers doc https://www.npmjs.com/package/fibers#sleep

Trying to fix this I tried to build/rebuild the locally installed fibers package using node-gyp as mentioned in the fibers docs. https://www.npmjs.com/package/fibers#from-source (Note: section)

Below are the commands in my script

cd node_modules/fibers
../.bin/node-gyp configure
../.bin/node-gyp build
rm bin/linux-x64-72-glibc/fibers.node
mv node_modules/fibers/build/Release/fibers.node node_modules/fibers/bin/linux-x64-72-glibc/fibers.node

I have also tried ../.bin/node-gyp rebuild

After all these steps I am getting below error

Error: The module 'node_modules/fibers/bin/linux-x64-72-glibc/fibers.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
..
...
...
node_modules/fibers/fibers.js:23
        throw new Error('Missing binary. See message above.');

fibers: 4.0.3 Node.js version: v12.15.0

Please suggest how to fix this issue