rdmtc / RedMatic

Node-RED packaged as Addon for the Homematic CCU3 and RaspberryMatic 🤹‍♂️
Apache License 2.0
534 stars 47 forks source link

Paketinstallation über die Konsole geht nicht #22

Closed Hypnos3 closed 6 years ago

Hypnos3 commented 6 years ago

wenn ich versuche über die Kommandozeite ein Paket zu installieren: /usr/local/addons/redmatic/bin/npm install -g <paket-name>

kommt: env: can't execute 'node': No such file or directory

hobbyquaker commented 6 years ago

So, habe die Doku korrigiert. Da ich die RedMatic executables nicht in den Pfad legen will (um nicht mit eventuellen anderen Node-basierten Addons zu kollidieren) ist es notwendig den RedMatic bin Pfad manuell hinzuzufügen wenn man npm/node auf der Kommandozeile nutzen will:

export PATH=/usr/local/addons/redmatic/bin:$PATH
cd /usr/local/addons/redmatic/var
npm install --save --no-package-lock --global-style --save-prefix="~" --production <paket-name>

https://github.com/hobbyquaker/RedMatic/wiki/Node-Installation#Installation-via-Command-Line

Hypnos3 commented 6 years ago

OK, Danke!