Upgrade the Node.js Agent
To upgrade the APM Insight Node.js agent, follow these instructions:
- Stop the Node.js application.
- Access the node package manager (NPM).
- Navigate to the application root directory of the application for which you want to upgrade the agent.
- First, you need to uninstall the old version of the agent by entering the below command:
npm uninstall apminsight - Now, from the same directory, run the following command to install the new version of the agent.
npm i apminsight@<version>
NoteThe 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 [email protected] - Restart the Node.js application.
Note
You can verify the version of the agent after upgrading by checking the package.json file.