pi@raspberrypi:~ $ homebridge ALL=(root) SETENV:NOPASSWD: /usr/local/bin/npm, /bin/systemctl restart homebridge, /usr/local/bin/node
-bash: syntax error near unexpected token `('
was bedeutet das jetzt? 
ich komme keinen Millimeter weiter.
ich habe das hier so gemacht wie in der Anleitung. mit dem unterschied, dass ich Node mit WinSCP auf den Pi kopiert und entpackt habe, weil es nicht anders ging.
login as: pi
[email protected]'s password:
Linux raspberrypi 4.19.50-v7+ #896 SMP Thu Jun 20 16:11:44 BST 2019 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Dec 5 18:10:47 2019 from 192.168.178.42
SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
pi@raspberrypi:~ $ wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-arm v7l.tar.gz
--2019-12-05 18:14:00-- https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-ar mv7l.tar.gz
Resolving nodejs.org (nodejs.org)... 2606:4700:10::6814:162e, 2606:4700:10::6814 :172e, 104.20.22.46, ...
Connecting to nodejs.org (nodejs.org)|2606:4700:10::6814:162e|:443... failed: Co nnection refused.
Connecting to nodejs.org (nodejs.org)|2606:4700:10::6814:172e|:443... failed: Co nnection refused.
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... failed: Connection re fused.
Connecting to nodejs.org (nodejs.org)|104.20.23.46|:443... failed: Connection re fused.
pi@raspberrypi:~ $ tar xf node-v10.16.0-linux-armv7l.tar.gz
tar: node-v10.16.0-linux-armv7l.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
pi@raspberrypi:~ $ tar xf node-v10.17.0-linux-armv7l.tar.gz
pi@raspberrypi:~ $ sudo cp -R node-v10.16.0-linux-armv7l/* /usr/local/
cp: cannot stat 'node-v10.16.0-linux-armv7l/*': No such file or directory
pi@raspberrypi:~ $ sudo cp -R node-v10.17.0-linux-armv7l/* /usr/local/
pi@raspberrypi:~ $ sudo npm install -g n
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/n failed, reason: connect ECONNREFUSED 104.16.20.35:443
npm ERR! at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:198:13)
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:392:9)
npm ERR! at TLSSocket.emit (events.js:198:13)
npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! { FetchError: request to https://registry.npmjs.org/n failed, reason: connect ECONNREFUSED 104.16.20.35:443
npm ERR! at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:198:13)
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:392:9)
npm ERR! at TLSSocket.emit (events.js:198:13)
npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! message:
npm ERR! 'request to https://registry.npmjs.org/n failed, reason: connect ECONNREFUSED 104.16.20.35:443',
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED',
npm ERR! stack:
npm ERR! 'FetchError: request to https://registry.npmjs.org/n failed, reason: connect ECONNREFUSED 104.16.20.35:443\n at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)\n at ClientRequest.emit (events.js:198:13)\n at TLSSocket.socketErrorListener (_http_client.js:392:9)\n at TLSSocket.emit (events.js:198:13)\n at emitErrorNT (internal/streams/destroy.js:91:8)\n at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)\n at process._tickCallback (internal/process/next_tick.js:63:19)' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-05T18_24_46_268Z-debug.log
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ npm config set registry http://registry.npmjs.org
pi@raspberrypi:~ $ npm install
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
up to date in 0.432s
pi@raspberrypi:~ $ sudo npm install -g n
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/n failed, reason: connect ECONNREFUSED 104.16.19.35:443
npm ERR! at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:198:13)
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:392:9)
npm ERR! at TLSSocket.emit (events.js:198:13)
npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! { FetchError: request to https://registry.npmjs.org/n failed, reason: connect ECONNREFUSED 104.16.19.35:443
npm ERR! at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:198:13)
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:392:9)
npm ERR! at TLSSocket.emit (events.js:198:13)
npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! message:
npm ERR! 'request to https://registry.npmjs.org/n failed, reason: connect ECONNREFUSED 104.16.19.35:443',
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED',
npm ERR! stack:
npm ERR! 'FetchError: request to https://registry.npmjs.org/n failed, reason: connect ECONNREFUSED 104.16.19.35:443\n at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)\n at ClientRequest.emit (events.js:198:13)\n at TLSSocket.socketErrorListener (_http_client.js:392:9)\n at TLSSocket.emit (events.js:198:13)\n at emitErrorNT (internal/streams/destroy.js:91:8)\n at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)\n at process._tickCallback (internal/process/next_tick.js:63:19)' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-05T18_33_01_906Z-debug.log
pi@raspberrypi:~ $ sudo n lts
sudo: n: command not found
pi@raspberrypi:~ $ sudo useradd -m -c "Homebridge Service" -s /bin/bash -G audio,bluetooth,dialout,gpio,systemd-journal,video homebridge
pi@raspberrypi:~ $ sudo visudo -f /etc/sudoers.d/homebridge
pi@raspberrypi:~ $ sudo chmod 640 /etc/sudoers.d/homebridge
pi@raspberrypi:~ $ sudo npm install -g --unsafe-perm homebridge
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/homebridge failed, reason: connect ECONNREFUSED 104.16.27.35:443
npm ERR! at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:198:13)
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:392:9)
npm ERR! at TLSSocket.emit (events.js:198:13)
npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! { FetchError: request to https://registry.npmjs.org/homebridge failed, reason: connect ECONNREFUSED 104.16.27.35:443
npm ERR! at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:198:13)
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:392:9)
npm ERR! at TLSSocket.emit (events.js:198:13)
npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! message:
npm ERR! 'request to https://registry.npmjs.org/homebridge failed, reason: connect ECONNREFUSED 104.16.27.35:443',
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED',
npm ERR! stack:
npm ERR! 'FetchError: request to https://registry.npmjs.org/homebridge failed, reason: connect ECONNREFUSED 104.16.27.35:443\n at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)\n at ClientRequest.emit (events.js:198:13)\n at TLSSocket.socketErrorListener (_http_client.js:392:9)\n at TLSSocket.emit (events.js:198:13)\n at emitErrorNT (internal/streams/destroy.js:91:8)\n at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)\n at process._tickCallback (internal/process/next_tick.js:63:19)' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-05T18_41_01_429Z-debug.log
pi@raspberrypi:~ $
Alles anzeigen
Ich habe das Problem gelöst.
Das Problem war, dass in der Fritz Box ccu3 und Raspberry in der Kindersicherung automatisch blockiert worden ist. Habe auf Standard gestellt und konnte dann alles herunterladen und installieren 
Morgen gehts an die Plugins