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.

Can't install on OSX

See original GitHub issue

I’ve seen this issue posted here, followed a number of instructions and am not making progress.

Running: sudo npm install -g homebridge

Gets me:

curve25519@1.1.0 install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519
node-gyp rebuild

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-gyp: command not found

bignum@0.11.0 install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum
node-gyp configure build

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-gyp: command not found

mdns@2.3.3 install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns
node-gyp rebuild

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-gyp: command not found

ed25519@0.0.3 install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519
node-gyp rebuild

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-gyp: command not found
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge"
npm ERR! node v4.4.4
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! curve25519@1.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the curve25519@1.1.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the curve25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls curve25519
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/stubelshe/npm-debug.log

As I said, I’ve followed a number of instruction on these boards and others and had no progress, any ideas?

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
tannebilcommented, May 27, 2016

That’s the process I successfully followed.

Sent from my iPhone

On May 27, 2016, at 3:13 PM, apwelsh notifications@github.com wrote:

Don’t use homebrew to install nodejs. Go to HTTP://nodejs.org and download the pkg, and install it.

Then use the sudo npm -g homebridge command.

It will throw some security warnings that root does not have access to .node-gyp folders and then a follow-up that it is attempting reinstall using temp dev dir. Then it should work.

Make sure you have write access to /use/local/* folders. Because of rootless mode in OS X El Capitan, the root user no longer gets full access to everything.

Depending on your version of brew, it may be trying to do work in /usr instead of /usr/local

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

0reactions
stale[bot]commented, Oct 31, 2017

This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the "macOS Could Not Be Installed on Your ...
1. Restart Your Mac and Retry the Installation · 2. Set Your Mac to the Correct Date and Time · 3. Create Enough...
Read more >
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 >
macOS could not be installed on your computer? Here's what ...
How to fix “macOS could not be installed on your computer” · 2. Try running the installer again while in Safe mode ·...
Read more >
macOS Could Not Be Installed on Your Computer? Read This!
Fix 1: Restart the Mac and Reintall · Fix 2: Check your Mac Date and Time · Fix 3: Free Up Space for...
Read more >
'macOS Could Not be Installed on Your Computer', Fix Now!
Fix 1: Restart your Mac and retry the installation · Fix 2: Set your Mac to the correct Date and Time · Fix...
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