Trying to get an existing blog running on a new machine can be confusing if you just expect to run normally with npx @11ty/eleventy --serve. You will need to reinstall a few things and set permissions.

  1. Reinstall nodejs and npm through whatever method on your OS. In a terminal on Arch: sudo pacman -S nodejs npm
  2. In the VS Code project folder, open a terminal and fix permissions: sudo chown -R $USER:$USER .
  3. Fix executable permissions: chmod -R +x node_modules/.bin/
  4. Reinstall the version of sharp that matches your current x64 Linux environment (Linux only): npm install --os=linux --cpu=x64 sharp
  5. Run as normal: npx @11ty/eleventy --serve