Problem:
When testing projects with the CLI or within your CI/CD pipeline you might receive the error:
Could not detect supported target files in /User/username/path/to/directory.
Please see our documentation for supported languages and target files: https://snyk.co/udVgQ and make sure you are in the right directory.
Discussion:
As the error alludes to, there were no supported target files within the directory structure where Snyk is being run. Snyk Open Source offers support for many different languages as listed on the linked page above, but can also be found here:
https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support
Resolution:
The project that you're scanning either:
1) Doesn't have any supported manifest files and is unsupported; or
2) You're in the wrong directory. Navigate to the directory which has the `package.json` or `build.gradle` files, for example.