If you encounter problems with testing or monitoring a project try updating your version of the CLI and running the command again. To install a new version with npm run the following:
npm i -g snyk
Snyk continuously releases new versions of the CLI as new features, language support, and bug fixes are added, so don't be surprised if you are a few versions behind! You may see a report of an available update as in the screenshot that follows.
Alternatively you can install the snyk CLI using npx, to ensure you always use the most recent version.
npx snyk test
For more information see Install the Snyk CLI.