IoBroker: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Wulf (Diskussion | Beiträge) Die Seite wurde neu angelegt: „__FORCETOC__ =Upgrading Node.js= <syntaxhighlight lang="bash"> iobroker stop npm cache verify </syntaxhighlight>“ |
Wulf (Diskussion | Beiträge) |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 5: | Zeile 5: | ||
iobroker stop | iobroker stop | ||
npm cache verify | npm cache verify | ||
chown -R iobroker /opt/iobroker | |||
</syntaxhighlight> | |||
Remove old node.js and install new one (replace "16" below with new version) | |||
<syntaxhighlight lang="bash"> | |||
apt update -y && sudo apt upgrade -y | |||
apt-get purge nodejs -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y | |||
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - | |||
apt-get install -y nodejs | |||
</syntaxhighlight> | |||
Install new JS Controller | |||
<syntaxhighlight lang="bash"> | |||
chown -R iobroker /opt/iobroker | |||
iobroker stop | |||
cd /opt/iobroker | |||
curl -sL https://iobroker.net/fix.sh | bash - | |||
sudo npm install -y iobroker.js-controller --unsafe-perm --production --save --prefix | |||
sudo npm rebuild | |||
</syntaxhighlight> | |||
Update and run ioBroker | |||
<syntaxhighlight lang="bash"> | |||
iobroker update | |||
iobroker upgrade self | |||
iobroker upgrade | |||
iobroker start | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Aktuelle Version vom 25. Juni 2022, 19:20 Uhr
Upgrading Node.js
iobroker stop
npm cache verify
chown -R iobroker /opt/iobroker
Remove old node.js and install new one (replace "16" below with new version)
apt update -y && sudo apt upgrade -y
apt-get purge nodejs -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
apt-get install -y nodejs
Install new JS Controller
chown -R iobroker /opt/iobroker
iobroker stop
cd /opt/iobroker
curl -sL https://iobroker.net/fix.sh | bash -
sudo npm install -y iobroker.js-controller --unsafe-perm --production --save --prefix
sudo npm rebuild
Update and run ioBroker
iobroker update
iobroker upgrade self
iobroker upgrade
iobroker start