-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postcss error with snap install of Hugo 0.70 #7278
Comments
Discussion from the Hugo support queue: |
It seems to have something to do with parameterless https://github.com/jprichardson/node-fs-extra/blob/master/lib/mkdirs/make-dir.js#L85 |
My Node version is 12.16.2 and still happens. Any workarounds? |
Also reproducible with snap installation of |
Also reproducible with snap installation of |
For the workarounds, using hugo binary from github release. sudo snap remove hugo
mkdir hugobin
cd hugobin
curl -L https://github.com/gohugoio/hugo/releases/download/v0.74.3/hugo_extended_0.74.3_Linux-64bit.tar.gz | tar -xz
sudo mv hugo /usr/local/bin/hugo
cd ..
rm -r hugobin |
Hi @jmooring, Sorry for the late follow-up.
The current Hugo snap bundles a copy of nodejs 8.12.0, so would that be the culprit? I.e., would bundling a newer copy of nodejs in the Hugo snap fix the issue? |
I have no idea. Why don't you give it a try? See "To Reproduce the Issue" in the original issue comment. Do we have to bundle nodejs? For a Hugo user to use PostCSS they have to install postcss-cli using npm which which requires nodejs. So they already have nodejs installed. |
For a Please correct me if I am wrong though as it would make things much easier. ;-) |
The fix is committed in commit 748fd4c, though admittedly I am not sure if it would solve your problem yet. Please either:
If the issue isn't really fixed, please re-open this issue and @ me. Thanks! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Environment
To Reproduce the Issue
git clone --single-branch -b hugo-github-issue-7278 https://github.com/jmooring/hugo-testing hugo-github-issue-7278 cd hugo-github-issue-7278 npm ci /snap/bin/hugo
npm ci
is required to locally install poscss-cli and autoprefixer.Details
The text was updated successfully, but these errors were encountered: