This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
The resume PDF download runs the /work page in a headless version of Chromium using Puppeteer. This setup can require some extra configuration (beyond the usual npm install) when running on certain systems.
Error: spawn Unknown system error -86
We need to install the M1 version of chromium, so we can do that through brew, and then update Puppeteer globals to point to that installation path:
Steps:
- Open a terminal and run:
brew install chromium --no-quarantine `which chromium` - Chromium should open. If there is a security warning (I didn't get one), go to
System Preferences>Security & Privacy>Generaland click "Open anyway". - Quit Chromium.app
- To
~/.zshrcadd:export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true export PUPPETEER_EXECUTABLE_PATH=`which chromium` - Restart the terminal
Notes: