- setup npm and nodejs
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install node
- setup hugo
wget https://github.com/gohugoio/hugo/releases/download/v0.141.0/hugo_extended_0.141.0_linux-amd64.deb
sudo apt install ./hugo_extended_0.141.0_linux-amd64.deb
- install dependencies
npm install postcss-cli
- start the local server
hugo server -D