While trying to install a NodeJS agent on a Linux-based application, we are receiving the error below:
[<user>@<host>]$ sudo npm install --global ca-apm-probe
/local_home/<user>/node/v10.14.2/bin/ca-apm-run -> /local_home/srcs/.nvm/versions/node/v10.14.2/lib/node_modules/ca-apm-probe/bin/ca-apm-run.js
> [email protected] install /local_home/<user>/.nvm/versions/node/v10.14.2/lib/node_modules/ca-apm-probe/node_modules/event-loop-stats
> node-gyp rebuild
sh: node-gyp: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! spawn ENOENT
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! /root/.npm/_logs/2019-12-16T13_34_35_256Z-debug.log
Release : 10.7.0
Component : APM Agents
SSL error complaining about missing SSL local certificate was due to SSL authorization checking.
This error can also occur due to the Python release.