When trying to run Snyk CLI on an Apple M1 machine, you may see the following error:
$ snyk --version
bad CPU type in executable
To run Snyk CLI on an Apple M1 machine, you need to install Apple's Rosetta 2 software. You can do so by running the following in a terminal:
softwareupdate --install-rosetta