Snyk supports Node.js v8 and above.
Add @snyk/nodejs-runtime-agent as a dependency to your project in order to start using Snyk Runtime Monitoring for your Node.js applications.
-
Ensure the Require statement for the agent is entered prior to all other require statements that you may add to the code.
//Example of Node.js code to run Snyk runtime agent require('@snyk/nodejs-runtime-agent') ({projectId: '0462e42b-c92f-4b48-bac8-81eb3ff7f43e', });
Commit and push the changes to your manifest file (for example package.json).