Method to upgrade Node Js Agent

Method to upgrade Node Js Agent

Manual upgrade from user terminal:                                                                                                  

To upgrade the APM Insight Node.js agent, follow these instructions:           
  1. Stop the Node.js application.
  2. Access the node package manager (NPM).
  3. Navigate to the application root directory of the application for which you want to upgrade the agent.
  4. First, you need to uninstall the old version of the agent by entering the below command:                              
npm uninstall apminsight
  1.  Now, from the same directory, run the following command to install the new version of the agent
npm i apminsight@<version>
                        Note: The version is the three-digit version number of the new version that you are installing; for example, for version 4.1.1,
                            Syntax:                                   
npm i apminsight@4.1.1
  1. Restart the Node.js application.

                  New to ADSelfService Plus?

                    • Related Articles

                    • Folder path to view the Node.js agent logs

                      By default, the logs generated by the Node.js agent are stored in the apminsightdata folder, which resides in your application's current working directory. The log files can be found at: <app-path>\apminsightdata\logs If you would like to customize ...
                    • How to install Node.js without an internet connection

                      Follow the steps given below to install the Node.js agent in your Node.js application side without pulling the NPM package from the internet Download the Node.js agent for download page and the attached agent dependency packages: ...
                    • Method to Upgrade .Net Agent

                      Manual upgrade from user terminal: Whenever a new version of the agent goes live, it will be listed on this APM Insight Download page. The latest agent can also be downloaded from AppManager web client's APM -> Add new Monitors page Once the latest ...
                    • Managing Node.js applications using PM2 Process Manager

                      Configure PM2 Process Manager to manage Node.js applications Follow the instructions given below to configure PM2 Process Manager to manage Node.js applications: Configure the processManagerEnabled key in the already created apminsightnode.json file. ...
                    • How to add an APM Insight Node.js agent in Kubernetes via InitContainers?

                      To integrate the APM Insight Node.js agent into your Kubernetes applications using InitContainers, follow the steps given below: Step 1: Create an empty volume that will be used to copy the agent files during the initContainers process. Example: ...