I followed the installation instructions and installed the necessary dependencies with these commands:
npm install postcss -D
npm install -g postcss-cli
npm install -g autoprefixer
However, I am encountering an error during the build process:
Rebuilding...
Done in 5574ms.
Start building sites …
hugo v0.129.0-e85be29867d71e09ce48d293ad9d1f715bc09bb9+extended linux/amd64 BuildDate=2024-07-17T13:29:16Z VendorInfo=gohugoio
WARN deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in a future release. Use hugo.IsServer instead.
WARN deprecated: .Site.GoogleAnalytics was deprecated in Hugo v0.120.0 and will be removed in a future release. Use .Site.Config.Services.GoogleAnalytics.ID instead.
Total in 514 ms
Error: error building site: POSTCSS: failed to transform "/css/style.css" (text/css): file:///home/nasredine/natamer/blog/node_modules/@sindresorhus/merge-streams/index.js:60
this.#onFinished ??= onMergedStreamFinished(this, this.#streams);
^^^
SyntaxError: Unexpected token '??='
at Loader.moduleStrategy (internal/modules/esm/translators.js:149:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Blonde@0.0.2 build: `tailwindcss -i ./themes/Blonde/assets/css/main.css -o ./themes/Blonde/assets/css/style.css && hugo --minify`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Blonde@0.0.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-07-28T08_44_02_689Z-debug.log
I followed the installation instructions and installed the necessary dependencies with these commands:
However, I am encountering an error during the build process: