# Hugo deployment failed in cloudflare

**URL:** <https://discourse.gohugo.io/t/hugo-deployment-failed-in-cloudflare/36231>\
**Category:** support\
**Created:** [December 27, 2021, 1:53am UTC](https://discourse.gohugo.io/t/hugo-deployment-failed-in-cloudflare/36231 "2021-12-27T01:53:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunfeipo](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sunfeipo](https://discourse.gohugo.io/u/sunfeipo)\
**Post date:** [December 27, 2021, 1:53am UTC](https://discourse.gohugo.io/t/hugo-deployment-failed-in-cloudflare/36231/1 "2021-12-27T01:53:21Z")

</div>

Error: Error building site: POSTCSS: failed to transform “scss/main.css” (text/css). Check your PostCSS installation; install with “npm install postcss-cli”. See [https://gohugo.io/hugo-pipes/postcss/:](https://gohugo.io/hugo-pipes/postcss/:) this feature is not available in your current Hugo version, see [Frequently Asked Questions | Hugo](https://goo.gl/YMrWcn) for more information

hey guys, can anyone help me?  
I built hugo locally and saved it on github.  
Hugo’s theme uses postcss. This component needs to be installed using cli commands. What should I do?  
I don’t know how to put the command’npm install postcss-cli’ into the environment variable?

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [December 27, 2021, 8:48am UTC](https://discourse.gohugo.io/t/hugo-deployment-failed-in-cloudflare/36231/2 "2021-12-27T08:48:58Z")

</div>

Hugo itself needs to be either compiled with postcss/pipes support or you install one of the extended precompiled versions.

After that, you need to install postcss and postcss-cli AND all used plugins either locally in your site or globally in your system (`npm install` vs. `npm install -g`). Don’t mix the installation type, if postcss is installed globally then all other parts need to be there too.
