Fixed the issue.
Instead of yum install nodejs npm , we can use the following commands for installing nodejs.
[root@rhel-agent node]# wget https://rpm.nodesource.com/pub/el/7/x86_64/nodejs-0.10.31-1nodesource.el7.centos.x86_64.rpm
[root@rhel-agent node]# rpm -ivh nodejs-0.10.31-1nodesource.el7.centos.x86_64.rpm
[root@rhel-agent node]# node -v
[root@rhel-agent node]# npm -v
[root@rhel-agent node]# npm install appdynamics@4.1.0
[root@rhel-agent node]# npm list
/home/basu/node
└─┬ appdynamics@4.1.0
├── appdynamics-jre@1.7.0
├── appdynamics-native@4.1.0
├── appdynamics-protobuf@0.8.7
├── appdynamics-proxy@4.1.0
├── appdynamics-zmq@2.5.1
├── node-uuid@1.4.1
└── set-immediate@0.1.1
Cheers!!
Arunava