To uninstall the New Relic Node.js agent:
require('newrelic');as the first line of the app's main module.
- Remove the npm package with
npm uninstall newrelic --save.
- Delete the
newrelic.jsfile and unset any environment variables being used.
- When the uninstall process finishes, restart your app.
For more information about installation, see Installing and maintaining Node.js.
You may also want to remove your app from the New Relic APM UI.
For more help
Additional documentation resources include:
- Troubleshooting the Node.js agent (a library of troubleshooting solutions for Node.js)