2.6 KiB
Please see IIAB's recommended Node.js version number around line 439 of /opt/iiab/iiab/vars/default_vars.yml
If nodesource.com doesn't yet support your OS
If nodesource.com does not yet support your Linux OS (they often support Debian pre-releases, but generally not other OS pre-releases) and IIAB's asked to install Node.js, it will do the equivalent of:
sudo apt install nodejs npm
sudo echo 'nodejs_installed: True' >> /etc/iiab/iiab_state.yml
AT YOUR OWN RISK, you can later run cd /opt/iiab/iiab
then sudo ./runrole --reinstall nodejs
if you really want to wipe your OS's own versions of Node.js and npm, and attempt the Nodesource approach instead.
See also late-breaking details on Nodesource support for your individual OS:
- https://github.com/nodesource/distributions#deb
- https://deb.nodesource.com/node_18.x/dists/
- https://deb.nodesource.com/node_19.x/dists/
- ETC!
Raspberry Pi Zero W Warning
UPDATE: The Zero 2 W released 2021-10-28 is 64-bit (ARMv7) so may or may not have such serious problems...
On the original Raspberry Pi Zero W (ARMv6) however: Node.js applications like Internet Archive, JupyterHub, Node-RED, PBX (Asterisk/FreePBX) and Sugarizer won't work — if you installed Node.js while on Raspberry Pi 3, 3 B+ (ARMv7) or Raspberry Pi 4 (ARMv8).
If necessary, run sudo apt purge nodejs npm
then sudo rm /etc/apt/sources.list.d/nodesource.list
then sudo apt update
and then attempt to install Node.js on the Raspberry Pi Zero W itself (cd /opt/iiab/iiab
then sudo ./runrole --reinstall nodejs
).
Earlier, some preferred installing the tar file version mentioned at #2082 — if that is your preference, consider a more recent version like: https://nodejs.org/dist/latest-v18.x/
Either way, you'll (likely) then also need to run: sudo apt install npm
Whatever versions of Node.js and npm you install, make sure /etc/iiab/iiab_state.yml
contains the line nodejs_installed: True
(add it if necessary!) Finally, proceed to install Internet Archive, JupyterHub, Node-RED (Raspberry Pi notes), PBX (Asterisk/FreePBX) and/or Sugarizer: #1799