-
Notifications
You must be signed in to change notification settings - Fork 379
Apple Silicon issues with hugo-bin and node-sass (and workaround) #521
Comments
NOTE: I use a fork repo with hugo-bin seem to work well if you bum to 0.71.1
For my side, I have more issue with mini-css-extract-plugin css-loader and sass-loader When I run here the output
UPDATE 1 UPDATE 2
UPDATE 3 |
Nice catch with the Did you check if hugo it was running on Rosetta compatibility mode or on native apple silicon? I've only used |
I have an apple silicon (mac mini m1) and I'll try to make a workaround on my local machine first. For the contribution on this repo (pull request), I don't know right now how to proceed. I'll continuing my investigation tomorrow and I post UPDATES if needed. |
I made a PR #522 for bumping all the old deprecated packages (not all, but the minimum package) for running without errors. It should work on |
I have an Intel processor (Big Sur v11.4) but was also having issues with |
@timtorres You are right. You can check my fork here or use it for starting your project. You can compare the package.json. |
Currently this project does not work with Apple Silicon (M1) processors.
Currently this issue: sass/node-sass#3033 prevents node-sass from being installed, and hugo-bin seems go give:
For anyone searching for solutions, this is what worked for me:
node-sass
dependency by"sass": "^1.35.1",
hugo-bin
from the dependencies2.1. Remove node modules
2.2.
npm install
(To work, this assumes you have hugo installed globally. Binaries for Apple Silicon are already available)
Another possibility (that I have not tested) is to use rosetta:
Leaving this here in hopes it will help someone.
Happy coding 🎉
The text was updated successfully, but these errors were encountered: