Closed albakhtari closed 2 years ago
I don't think it's an error explicitly with electron-builder. I see this in the error logs:
npm ERR! gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
Quick search came back with: https://stackoverflow.com/questions/69882740/how-to-rebuild-epoll-package-in-electron One recommendation is to use Node 16 instead of 17
I don't think it's an error explicitly with electron-builder. I see this in the error logs:
npm ERR! gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
Quick search came back with: https://stackoverflow.com/questions/69882740/how-to-rebuild-epoll-package-in-electron One recommendation is to use Node 16 instead of 17
You know you're not the first to suggest this, so I'll give it a go. Thanks for the reply.
I get this error on my 5.15.28-1-MANJARO system.
This is the output of
npm i
:This is the output of `npm i`:
```bash >>> npm i > walc@0.2.1 postinstall > electron-builder install-app-deps • electron-builder version=22.14.13 • loaded configuration file=package.json ("build" field) • rebuilding native dependencies dependencies=bcrypt@5.0.1, deasync@0.1.26, node-sass@7.0.1, usocket@0.3.0 platform=linux arch=x64 ⨯ cannot execute cause=exit status 1 errorOut=npm ERR! code 1 npm ERR! path /home/vm/WALC/node_modules/usocket npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@17.8.0 | linux | x64 npm ERR! gyp info find Python using Python version 3.10.2 found at "/usr/bin/python3" npm ERR! (node:18231) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created) npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/vm/WALC/node_modules/usocket/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/vm/WALC/node_modules/usocket/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/vm/WALC/node_modules/usocket/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/vm/.electron-gyp/17.4.1/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/vm/.electron-gyp/17.4.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/vm/WALC/node_modules/usocket/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/vm/.electron-gyp/17.4.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/vm/WALC/node_modules/usocket', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/home/vm/WALC/node_modules/usocket/node_modules/node-gyp/lib/configure.js:351:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 5.15.28-1-MANJARO npm ERR! gyp ERR! command "/usr/bin/node" "/home/vm/WALC/node_modules/usocket/node_modules/.bin/node-gyp" "rebuild" npm ERR! gyp ERR! cwd /home/vm/WALC/node_modules/usocket npm ERR! gyp ERR! node -v v17.8.0 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /home/vm/.npm/_logs/2022-04-23T18_30_28_316Z-debug-0.log command=/usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js rebuild bcrypt@5.0.1 deasync@0.1.26 node-sass@7.0.1 usocket@0.3.0 workingDir= npm ERR! code 1 npm ERR! path /home/vm/WALC npm ERR! command failed npm ERR! command sh -c electron-builder install-app-deps npm ERR! A complete log of this run can be found in: npm ERR! /home/vm/.npm/_logs/2022-04-23T18_30_23_391Z-debug-0.log ```These are the contents of `package.json`:
```json { "name": "walc", "version": "0.2.1", "description": "A WhatsApp Desktop client for linux systems. This is an unofficial client. Use https://web.whatsapp.com for official web client as official desktop client for linux does not exist.", "main": "src/main.js", "scripts": { "start": "electron .", "clean": "rm -rf dist && rm -rf public/js/*", "dist": "npm run clean && npm run prod && npm run rebuild-deps && npm run build", "build": "electron-builder", "rebuild-deps": "electron-rebuild", "dev": "npm run development", "postinstall": "electron-builder install-app-deps", "development": "mix", "watch": "mix watch", "watch-poll": "mix watch -- --watch-options-poll=1000", "hot": "mix watch --hot", "prod": "npm run production", "production": "mix --production" }, "bin": { "walc": "main.js" }, "repository": { "type": "git", "url": "https://github.com/WAClient/WALC.git" }, "keywords": [ "whatsapp", "whatsapp-linux", "whatsapp-web" ], "author": "cstayyabI tried to reinstall
nodejs
,npm
andnode-gyp
and deleting all related files in my home directory. But that made no difference.