Change:
Describe the bug I am setting up the freecodecamp platform on my local following the instructions from I get this issue when I run . ! I have tried solutions given in below links: Still no luck. I also tried running the terminal on Rosetta, that also gave the same error. Desktop (please complete the following information): MacBook Air (M1, 2020) 11.4 (20F71)
can someone with a mac confirm this on another device? ?
I checked it yesterday but I didn't get any error. Also the docs suggest you to use Node v14. Could you try once with that version?
Oops. I had tried this on Node v14. My default version is 12, So at the time of creating the issue, it came as 12. Apologies. Here is the actual version.
Can you give some more info on what you've tried?
I forked and cloned the repo into my system. Then ran following commands. Environment: MacBook Air (M1, 2020) 11.4 (20F71) node: v14.16.1 npm: 6.14.12 terminal: iTerm 3.4.8 As suggested in , I went through these steps. I also tried removing the node_modules/sharp and installing it specifically to but no luck. It fails with below error. I might be missing something fundamental here. Not sure.
Did you configure your terminal to use Rosetta or are you using the normal terminal?
It is normal terminal.
Switched the terminal to run on Rosetta, deleted and installed all dependencies. The error is still the same. I verified that the terminal is running on Intel from Activity Monitor. PS: I have another Gatsby Project which has and it is running properly.
Hmm this is strange, I use the normal terminal and I haven't any issues in my M1 Mac. Could you try deleting your clone of FCC and starting again. Also how did you install Nodejs?
I installed NodeJS through NVM. Are you using terminal in rosetta or Apple M1?
Im using M1 terminal. I haven't come across the need to use Rosetta as of yet, so rosetta has not been enabled anywhere at all. Aha I knew I had missed something. Ok so when I got my M1, which was like a month or so back, I was reading up on Nodejs v14 support for M1 and at that time it was in testing stage as Node had made v15 and up fully support M1 but not v14. Later on a week later, they released a minor update v14.17 which backported support for v8. I think that if you use the v14.17 version you might not face any issue. Also just to be on the safer side, its better if you deleted your local clone of the repo. Also what output do you get when you run in terminal? Here's hoping that it works
Good that you recalled. Updating to node v14.17 worked!! PS: command output Do you think we need to update page for M1 users?
Hey Nice to hear that it worked! I don't think we need to add it in the contributors' guide because of the userbase being so small. Also, Node might update and the instructions could go out of date fast. You can always open a PR and we will review it. Have a nice day and looking forward to your contributions!
Perfect and also I think it would be better to add a small note in the "Troubleshooting" part of the contribution docs.
Added in
I am having the same issue with node v14.18.0
I suggest sticking to Node v14.17.0 for now if you are on M1 Mac.
tried switching too, still doesn't work, Gatsby is working though. Also, I am using a Linux machine

Discussion:
The first time setup can take a while depending on your network bandwidth. Be patient, and if you are still stuck we recommend using GitPod instead of an offline setup. <ins> > [!NOTE] > If you are using Apple Devices with M1 Chip to run the application locally, it is suggested to use Node v14.7 or above. You might run into issues with dependencies like Sharp otherwise. </ins> ## Getting Help If you are stuck and need help, feel free to ask questions on the ['Contributors' category on our forum](https://forum.freecodecamp.org/c/contributors) or [the contributors chat room](https://chat.freecodecamp.org/channel/contributors).