Closed huogerac closed 2 years ago
@huogerac Can you confirm if you have executed this command?
npm install -g postcss-cli
The command you shared seem to be wrong. Above command is what you need to execute before hugo serve
@huogerac Can you confirm if you have executed this command?
npm install -g postcss-cli
The command you shared seem to be wrong. Above command is what you need to execute before
hugo serve
Hi, I also have this problem. I built with hugo v0.89.4. The error feedback is as follows:
Error: Error building site: POSTCSS: failed to transform "css/styles.css" (text/css): /usr/local/lib/node_modules/postcss-cli/index.js:3
import fs from 'fs-extra'
^^
SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Built in 30124 ms
I run
npm install -g postcss-cli
then
npm update
And now it is working.
Thank you
@imsalze
Looks like you have not executed npm install
locally
The steps are as follows:
npm install -g postcss-cli
npm install
hugo serve
Hi, great theme, however, I couldn't run it
I've tried to install the postcss-cli:
npm install -g npm install postcss-cli
then another error pops up:
Anyone have some tip? Sorry! I'm new in go and hugo...
cheers!
obs: I've installed the latest hugo version (v0.88.1) using .deb package on ubuntu LTS