hi, in my project, I need use
ed25519 library. If I run the program directly after
npm install, an error will be reported:
project/node_modules/ed25519/build/Release/ed25519.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 59. This version of Node.js requires NODE_MODULE_VERSION 54. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or`npm install`).
npm rebuild able to compile normally, but when I use
./node_modules/.bin/electron-rebuild compiled under the project directory, error message shows:
fatal error: 'openssl/sha.h' file not found
/Users/username/.node-gyp/9.2.0/include/node directory, has
openssl directory, but in
/Users/username/.electron-gyp/.node-gyp/iojs-1.7.9 directory, it is not exist.
- NodeJS Version: 9.2.0
- Electron Version: 1.7.9
- Operating system: macOS High Sierra 10.13