Closed justinbaum closed 1 year ago
I needed to add npm ci
to my build command in cloudlfare pages.
Hey, good to see you found a solution. I couldn't have helped you anyways. There is a myriad of cloud providers out there, each with a slightly different configuration. So I stopped looking into any build issues on cloud providers. I'm just making sure this package builds locally.
Hello, I've got the theme working locally and I'm trying to deploy the site on Cloudflare Pages but I'm receiving the following error:
Error: error building site: POSTCSS: failed to transform "css/styles.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
I've found another instance of this error in forums but it seems the underlying issue is unclear. #9730
I'm out of my depth here, apologies if the issue wasn't articulated clearly. Any ideas? I've set environment variables to make sure the correct version of Hugo is being used. I've got other Hugo sites deploying fine on CFP, but they are not using postcss.