Skip to main content

Install the Node.js agent

There are several ways to install the agent depending on your situation, but generally, this is the process:

  1. Get the Node.js agent from npm.

  2. Set authentication keys .

  3. Add a command to the package.json file to enable your application to run with the agent.

  4. Run your application with the agent.

  5. Use your application as you normally would and verify that Contrast sees the application.

To avoid errors, follow these specific instructions depending on how your application is deployed: