admin管理员组

文章数量:1125042

somehow I messed up my system, and can't figure out, what's wrong.

A few years ago I installed chocolatey, nodejs and Hugo on my PC (Win 10, now updated to Win 11). A few years later I downloaded tella theme (/) and customized it. All worked fine. A few weeks ago I wanted to edit the website. In this context I wanted to also update my packages (choco, hugo, nodejs etc.) but then I ran into the error "Error: error building site: POSTCSS: failed to transform "/css/style.css" (text/css):" when I try hugo serve or hugo built, and can't get rid of it. Even the blanc theme-example-site won't work anymore (same Error), although it works on another machine with the same nodejs/hugo setup.

I already tried the following things:

  • deleting node-modules, package-lock.json and reinstall with node install
  • downgrading hugo again with choco to several Versions (0.79, 0.81)
  • Uninstall everything (choco, node, npm hugo, all packages) (How to completely remove node.js from Windows)
  • Reinstall everything as local user in AppData-Folder (downloading all executables and adding environment-variables)
  • Reinstalling everything as an Admin-User with choco script and node-installer (my normal user has no Admin rights)
  • npm cache clear
  • installing hugo-extended
  • installing tailwind, postcsss, postcss-cli, autoprefixer globally

On another PC (Win10, hugo 0.140, node v22.13) it works fine, so I guess something with my PC is wrong. I use VS Code for development.

Any Ideas? Can it be a problem with Win 11? Did I miss any Cache or config I need to clear, to have a clean, new setup again?

Thanks in advance.

本文标签: