question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run `npm run develop` on Apple MacBook M1 Chip due to sharp

See original GitHub issue

Describe 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.

Clipboard - July 11, 2021 6_45 PM

I have tried solutions given in below links:

  1. https://stackoverflow.com/questions/67560211/mac-m1-something-went-wrong-installing-the-sharp-module
  2. 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:closed
  • Created 2 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

3reactions
Sembaukecommented, Jul 15, 2021

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!

1reaction
Nirajn2311commented, Jul 15, 2021

Perfect and also I think it would be better to add a small note in the “Troubleshooting” part of the contribution docs.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found