rebuild
rebuild copied to clipboard
Issue with module `sharp`
I run into the following issue:
Uncaught Error: The module '/home/pi/photo-
booth/node_modules/sharp/build/Release/sharp.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, usingnpm rebuildornpm install`).
It's the same error as #205, but another module.
I have to go with a 1.7.* version of electron-prebuilt-compile
for now because of a bug in newer versions on my system configuration. Could this issue be related to the different versions of electron
and electron-prebuilt-compile
?
Install procedure: npm install && npm run rebuild
Node version: v8.11.1
My package.json
:
{
"name": "photo-booth",
"version": "1.0.0",
"description": "A multi-platform photo booth software using Electron and your camera",
"main": "main.js",
"author": "Philipp Trenz",
"license": "GPL-3.0",
"repository": "https://github.com/philipptrenz/photo-booth",
"scripts": {
"start": "electron .",
"rebuild": "electron-rebuild"
},
"keywords": [
"photo-booth"
],
"devDependencies": {
"babel-preset-stage-0": "^6.24.1",
"electron": "1.8.4",
"electron-prebuilt-compile": "1.7.13",
"electron-rebuild": "1.7.3"
},
"dependencies": {
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-register": "^6.26.0",
"express": "^4.16.3",
"jquery": "^3.3.1",
"bootstrap": "^4.0.0",
"popper.js": "^1.14.1",
"rpi-gpio": "^0.9.1",
"sharp": "^0.20.1",
"socket.io": "^1.7.0",
"gphoto2": "^0.3.0"
}
}