我试图重建一个电子应用程序,但我得到了这个错误的epoll安装。
Building module: epoll, Completed: 0gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild '/home/pi/ma-0042-cihaz-be/node_modules/epoll'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
Error: `gyp` failed with exit code: 1
Error: node-gyp failed to rebuild '/home/pi/ma-0042-cihaz-be/node_modules/epoll'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
at NodeGyp.rebuildModule (/home/pi/ma-0042-cihaz-be/node_modules/electron-rebuild/lib/src/module-type/node-gyp.js:109:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async ModuleRebuilder.rebuildNodeGypModule (/home/pi/ma-0042-cihaz-be/node_modules/electron-rebuild/lib/src/module-rebuilder.js:94:9)
at async Rebuilder.rebuildModuleAt (/home/pi/ma-0042-cihaz-be/node_modules/electron-rebuild/lib/src/rebuild.js:226:9)
at async Rebuilder.rebuild (/home/pi/ma-0042-cihaz-be/node_modules/electron-rebuild/lib/src/rebuild.js:184:17)
at async /home/pi/ma-0042-cihaz-be/node_modules/electron-rebuild/lib/src/cli.js:154:9我用的是覆盆子,我也更新了。但没起作用。这些是安装的依赖项。
{
"dependencies": {
"@babel/preset-react": "^7.14.5",
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"history": "^5.1.0",
"i2c-bus": "^5.2.2",
"jest": "^27.3.1",
"jest-fetch-mock": "^3.0.3",
"jsonwebtoken": "^8.5.1",
"mfrc522-rpi": "^2.1.3",
"moment": "^2.29.1",
"network-config": "^3.0.0",
"node-cron": "^3.0.0",
"node-fetch": "^2.6.5",
"node-wifi": "^2.0.15",
"pi-camera": "^1.6.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.0.0",
"realm": "^10.7.0",
"rpi-gpio": "^2.1.7",
"rpi-softspi": "^1.0.5",
"rpio": "^2.4.2",
"source-map-support": "^0.5.16"
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/node": "^7.15.4",
"@babel/plugin-transform-runtime": "^7.16.0",
"@babel/preset-env": "^7.15.6",
"babel-loader": "^8.2.2",
"electron": "8.2.0",
"electron-builder": "^22.11.7",
"electron-rebuild": "^3.2.3",
"electron-webpack": "^2.8.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
"webpack": "~4.42.1"
}
}我用Packe-lock.json删除了node_modules,并重新安装了所有的东西。我用apt-get升级更新了树莓。我不知道该怎么解决这个问题。你有什么想法吗?
发布于 2021-11-10 05:04:47
电子重建v3.2.5释放。
更新后问题解决了!
发布于 2021-11-09 10:41:38
在我的例子中,在将NodeJS更新到17.0.1版本之后,同样的问题开始了。
整个问题是在bcrypt包中,它不再符合版本17的标准。
在我的例子中,将版本减少到16种帮助。
发布于 2022-03-18 07:33:53
gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
我只是花了一天时间解决这个问题。最后,这就是对我起作用的东西。
node-gyp:npm安装node-gyp@latest -d
binding.gyp,添加(顶部):{“变量”:{ "openssl_fips“:"0”},…}
https://stackoverflow.com/questions/69882740
复制相似问题