Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERR! mdns@2.3.4 install: node-gyp rebuild #145

Closed
Callero opened this issue Nov 20, 2017 · 1 comment
Closed

npm ERR! mdns@2.3.4 install: node-gyp rebuild #145

Callero opened this issue Nov 20, 2017 · 1 comment

Comments

@Callero
Copy link

Callero commented Nov 20, 2017

Trying to install on vanilla Ubuntu

Someone stated that it might be a time error, checked that date is correct.

node-gyp rebuild fails:
sudo node-gyp rebuild /usr/bin/env: ‘node’: No such file or directory

Checked all components:
sudo apt-get install build-essential libavahi-compat-libdnssd-dev git Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.1ubuntu2). libavahi-compat-libdnssd-dev is already the newest version (0.6.32~rc+dfsg-1ubuntu2). git is already the newest version (1:2.7.4-0ubuntu1.3). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

sudo apt-get install nodejs npm git-core libnss-mdns libavahi-compat-libdnssd-dev Reading package lists... Done Building dependency tree Reading state information... Done libavahi-compat-libdnssd-dev is already the newest version (0.6.32~rc+dfsg-1ubuntu2). libnss-mdns is already the newest version (0.10-7). npm is already the newest version (3.5.2-0ubuntu4). git-core is already the newest version (1:2.7.4-0ubuntu1.3). nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Install error
`
npm i homebridge -g
▐ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadRequestedDeps ▐ ╢███████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:qrcode-terminal → ▄ ╢███████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
/usr/local/bin/homebridge -> /usr/local/lib/node_modules/homebridge/bin/homebridge

mdns@2.3.4 install /usr/local/lib/node_modules/homebridge/node_modules/mdns
node-gyp rebuild

/usr/bin/env: ‘node’: No such file or directory
/usr/local/lib
└── (empty)

npm ERR! Linux 4.4.0-87-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i" "homebridge" "-g"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! mdns@2.3.4 install: node-gyp rebuild
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the mdns@2.3.4 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mdns 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 information on how to open an issue for this project with:
npm ERR! npm bugs mdns
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mdns
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/calle/node_modules/node-gyp/npm-debug.log
npm ERR! code 1

`

@drewcovi
Copy link
Collaborator

Homebridge issue... please post to that repository, and get everything up and running before adding this plugin. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants