I’ve purchased a theme from gethugothemes and am attempting to follow the instructions here:
I have unzipped the theme into my hugo project’s themes/ directory, set the theme in the hugo.toml
file and copied the theme’s exampleSite
files into my project root. I then call hugo server
.
Unfortunately, this fails with an error:
Error: error building site: POSTCSS: failed to transform "css/style.css" (text/css). Check your PostCSS installation; install with "npm install postcss-cli". See https://gohugo.io/hugo-pipes/postcss/: binary with name "npx" not found
However, I do have npx
installed:
$ which npx
/home/jaypipes/.nvm/versions/node/v19.4.0/bin/npx
$ hugo env
hugo v0.115.4-dc9524521270f81d1c038ebbb200f0cfa3427cc5+extended linux/amd64 BuildDate=2023-07-20T06:49:57Z VendorInfo=snap:0.115.4
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.19.11"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
github.com/sass/dart-sass/protocol="2.1.0"
github.com/sass/dart-sass/compiler="1.64.0"
github.com/sass/dart-sass/implementation="1.64.0"
I have made zero other changes and have followed the instructions on the above linked documentation page exactly.