apvarun / showfolio-hugo-theme

Modern portfolio theme for your Hugo site
https://showfolio.vercel.app/
MIT License
102 stars 41 forks source link

Failed to transform css/styles.css #1

Closed lily-champagne closed 3 years ago

lily-champagne commented 3 years ago

I am trying to build the site and I keep getting this error message:

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/

I read hugos documentation on hugo pipes but I don't understand how to install it or what to do with it in regards to this theme.

apvarun commented 3 years ago

Hi Lily

The easiest way is to copy the package.json file from the theme folder to the hugo project root folder and then run npm install (make sure you have node js installed before running this command)

Once this is done, hugo serve would work. This step is a one-time process.

apvarun commented 3 years ago

Closing due to inactivity

gmhafiz commented 3 years ago

Hey, a better way is to install postcss-cli globally.

So in your readme add the following command

npm install -g postcss-cli