When using criticalCSS on Apple Silicon hardware in an arm64 linux virtual machine, puppeteer installs an x86-64 version of chromium which will not launch and will cause and npm run
command to fail.
This problem can be solved by firstly installing chromium-browser which is a native arm64 and x86-64 build:
sudo apt install chromium-browser