I have a requirement to monitor NGINX hosted in RedHat Linux server. I came across the field pack posted in CA-APM/ca-apm-fieldpack-nginx · GitHub .
As node.js and npm were pre-requisites ,I installed them as it was not there in the server.
But one of the fieldpack installation step was to execute 'npm install request'. The command failed as it was trying look for some files or repository in internet. Since ours was a UAT environment and has no access to internet , I was looking for a way to install it without any internet access.
I have attached the error screenshot.
Has anyone done this before?
This should be possible. It looks like you'd install the node part on another server then create a tar file of the contents you can move to your UAT system.
It looks like I can make this easier by providing a package.json file, so let me give that a try for you and come back with some steps.
Thanks a lot Tim. It would be very helpful.
The following steps worked for me.
On the non-UAT system:
git clone https://github.com/commenthol/offline-npm.git
npm install -g
Now, copy the tgz file to your UAT system.
On the UAT system, it should be one step to install:
Now you can continue to the Configuration steps and run the application.
You can also use npmbox (https://github.com/arei/npmbox/blob/master/README.md#user-content-using-npmunbox-without-npmbox-being-installed)
or simply npm pack on a system with internet access, copy the tarball and use npm install <tarball> on the target system.
Thanks Guenter for the suggestion and help, Will try this option too.
Thanks a lot Tim. Will try this and give you an update.
Thanks a lot for the help.