Postinstall script on is set to electron-rebuild better-sqlite3 on gitlab runner CentOS and it fails. I tried running directly node-gyp command to rebuild with no success. On windows got this working.
node - v14.20.1 electron - v13.1.8 node-gyp - v5.1.0 better-sqlite3 - v7.4.4
lerna ERR! npm install stdout:
lzma-native@8.0.6 install /builds/cme/cme-desktop/packages/api/node_modules/lzma-native node-gyp-build better-sqlite3@7.4.4 install /builds/cme/cme-desktop/packages/api/node_modules/better-sqlite3 prebuild-install || npm run build-release better-sqlite3@7.4.4 build-release /builds/cme/cme-desktop/packages/api/node_modules/better-sqlite3 node-gyp rebuild --release lerna ERR! npm install stderr: prebuild-install WARN install getaddrinfo ENOTFOUND github.com gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and gyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad gyp ERR! stack network settings. gyp ERR! stack at Request.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:171:21) gyp ERR! stack at Request.emit (events.js:400:28) gyp ERR! stack at Request.onRequestError (/usr/lib/node_modules/npm/node_modules/request/request.js:881:8) gyp ERR! stack at ClientRequest.emit (events.js:400:28) gyp ERR! stack at TLSSocket.socketErrorListener (_http_client.js:475:9) gyp ERR! stack at TLSSocket.emit (events.js:400:28) gyp ERR! stack at emitErrorNT (internal/streams/destroy.js:106:8) gyp ERR! stack at emitErrorCloseNT (internal/streams/destroy.js:74:3) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:82:21) gyp ERR! System Linux 4.18.0-305.62.1.el8_4.x86_64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release" gyp ERR! cwd /builds/cme/cme-desktop/packages/api/node_modules/better-sqlite3 gyp ERR! node -v v14.20.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! better-sqlite3@7.4.4 build-release: node-gyp rebuild --release npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the better-sqlite3@7.4.4 build-release script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in:
We're trying to build mult-modular application on GitLab runner CentOS.