Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.4K
Views
MAC M1 Something went wrong installing the "sharp" module

Running npm run dev (gatsby develop) on MacBook Pro M1 chip exit with Error: 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 run "gatsby develop " Something went wrong installing the "sharp" module error is showing
  • Error Installing Gatsby Starter 'Something went wrong installing the "sharp" module'
  • Gatsby Develop : Something went wrong installing the "sharp" module

I've update my node version in case any fixes had been made but I still got the error on node v16.0.0

On this github issue they recommend to follow theses steps which did not work.

rm -r node_modules/sharp
yarn install --check-files

On this github issue they recommend to install NVM and downgrade node version. NVM has some difficulties to install on my M1 chip so it is not a good option for me.

I have also tried to do the following steps which did not work as well

rm -rf node_module
rm package-lock.json
npm i 

Any idea what I can do to make simply work gatsby develop on M1 chip ?

over 4 years ago · Santiago Trujillo
4 answers
Answer question

0

I had to downgrade node from 17 (nvm is ideal here) - it worked on 14.

over 4 years ago · Santiago Trujillo Report

0

I tried this command, it will probably workout for you too. all you need to do is to install sharp with unsafe perm which gonna fix the error

npm install sharp --unsafe-perm

keep in mind that this just fix it for the time being and i suggest you to update the xcode command line tools for the main fix

over 4 years ago · Santiago Trujillo Report

0

Following these steps from this issue solved my problem.

  1. xcode-select --install
  2. brew install gcc
  3. brew reinstall vips
  4. brew info vips
  5. npm i

Then you can run gatsby develop

over 4 years ago · Santiago Trujillo Report

0

Use sharp 0.29.0 or more will fix this issue

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!