Problems installing Nodejs agent on Linux

book

Article ID: 142663

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management

Issue/Introduction

While trying to install a NodeJS agent on a Linux-based application, we are receiving the error below:

 

 [[email protected]]$ sudo npm install --global ca-apm-probe

/local_home/srcsbshpersions/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/srcs/.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

 

Cause

SSL error complaining about missing SSL local certificate was due to SSL authorization checking.

Environment

Release : 10.7.0

Component : APM Agents

Resolution

set NODE_TLS_REJECT_UNAUTHORIZED=0

Additional Information

This error can also occur due to the Python release.