Unable to run `npm run develop` on Apple MacBook M1 Chip due to sharp
See original GitHub issueDescribe the bug
I am setting up the freecodecamp platform on my local following the instructions from https://contribute.freecodecamp.org/#/how-to-setup-freecodecamp-locally. I get this issue when I run npm run develop
.
I have tried solutions given in below links:
- https://stackoverflow.com/questions/67560211/mac-m1-something-went-wrong-installing-the-sharp-module
- https://github.com/gatsbyjs/gatsby/issues/30807
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)
$ node -v
v12.21.0
$ npm -v
6.14.11
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
MAC M1 Something went wrong installing the "sharp" module
Running npm run dev MacBook Pro intel chip works fine. I've seen similar post which did not solved my problem : When i...
Read more >Fixing npm install on an M1 Mac - AJ's Blog
I just bought a new Macbook with an M1 chip to work on my dating app. ... Now, cd into your project folder...
Read more >macOS Big Sur: How to setup Node.js on Apple M1 Machine
Restart terminal and run the final command. $ nvm use node. Confirm that you are using the latest version of Node and npm....
Read more >.Net Development on the M1 Mac. I switched to a MacBook ...
This is how I managed to setup my M1 MacBook Air for .NET and Angular (NodeJS) development. The state of .NET on Apple...
Read more >How to fix EACCES errors with NPM on MacOS - WILL & SKILL
There are times when You get an ugly EACCES error message from NPM when You try to install an NPM package globally on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @vishwasnavadak,
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.