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.
本文标签:
版权声明:本文标题:node.js - Why won't Hugo compile on my machine with PostCSS error, althogh it does on another PC with the same settings? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736634343a1945844.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论