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