At times you may find that you encounter an error such as the following while running one of Snyk's CLI commands:
This generally occurs on larger projects where the default amount of memory allocated by node (1.5gb) is insufficient to complete the command successfully.
You can increase the amount of memory allocated to the command by running the following command prior to running Snyk:
From the control panel go to System -> Advanced system settings -> Environment Variables -> New (user or system)
Or this can be done in powershell with:
You can also increase this number, if necessary. We've seen folks need to increase this up to 14gb for some larger projects!
If this doc helped, consider creating a free Snyk account to use our products to secure your code.