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.

Installation Error on Mac osX

See original GitHub issue

Error when running npm install sharp on OSX 10.9.4

> sharp@0.6.0 install /Users/justin/dev/git/ignite/node_modules/sharp
> node-gyp rebuild

  CXX(target) Release/obj.target/sharp/src/sharp.o
../src/sharp.cc:6:10: fatal error: 'tuple' file not found
#include <tuple>
         ^
1 error generated.
make: *** [Release/obj.target/sharp/src/sharp.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Darwin 13.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/justin/dev/git/ignite/node_modules/sharp
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm ERR! sharp@0.6.0 install: `node-gyp rebuild`
npm ERR! Exit status 1

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lovellcommented, Aug 24, 2014

Thanks @salzhrani and @DMarby, I’ve added your suggested MACOSX_DEPLOYMENT_TARGET directive.

If you’re able, please could one of you try the following again:

npm install lovell/sharp#c11-xcode

If this works, I’ll merge this fix to master and publish to npm.

0reactions
smakoshcommented, Nov 3, 2018

I’m having this issue again on macOs Mojave

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >
How to Fix the "macOS Could Not Be Installed on Your ...
1. Restart Your Mac and Retry the Installation ... Sometimes, all you need to do to fix macOS errors is to restart your...
Read more >
9 Ways to Fix an Error Occurred While Preparing the Installation
Fix 1: Restart your Mac · Fix 2: Check the Date and Time · Fix 3: Boot Into Safe Mode · Fix 4:...
Read more >
Mac Installation Errors You May Encounter and How to Fix Them
It may seem odd but the usual cause is a corrupt installer, and simply deleting the installer app and downloading a new copy...
Read more >
How to Fix macOS “Installation failed, An error occurred while ...
How To Fix The Installation Failed Error on macOS · Try Downloading The Update at Another Time · Reboot Your Mac · Make...
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