I am trying to install kerberos autentication related packages in nodeJS. I tried installing few of the below packages. But it's giving error related to node-gyp rebuild.
- KRB5
- kerberos
System Info: OS: Linux redhat, Node version: 14.18.2, Python: 3.6.8, g++(GCC): 8.5.0, node-gyp: Installed
Error message:
> node-gyp rebuild
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/local/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/local/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-348.el8.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ABC132/nodetest/node_modules/krb5
gyp ERR! node -v v14.18.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/ABC132/nodetest/package.json'
npm WARN nodetest No description
npm WARN nodetest No repository field.
npm WARN nodetest No README data
npm WARN nodetest No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ABC132/.npm/_logs/2021-12-27T06_46_37_053Z-debug.log
Any help much appreciated.