Unable to build using `hugo server`

Excellent project but I am unable to build using Windows with this command hugo server. This is the error shown to me:

Built in 5358 ms
Error: error building site: POSTCSS: failed to transform "assets/main/bundle.min.css" (text/css): 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Check the path to your postcss program and make sure you have installed hugo extended

What @chrillek said, and also ensure to follow the installation documentation for your theme if you are using one.

This is a known issue (#7333) on Windows. You can either:

  1. Remove the spaces from the project’s path, or
  2. Move the postcss setttings into package.json (see this comment)
1 Like