1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00
iiab/roles/nodejs
2022-07-20 09:22:34 -04:00
..
defaults internetarchive/tasks/install.yml: Enforce Node.js <= 18.x 2022-04-20 18:53:18 +00:00
tasks Support skip_role_on_error in 23+2 more roles (Stages 6-9) 2022-06-18 13:55:05 -04:00
README.md Create roles/nodejs/README.md 2022-07-20 09:22:34 -04:00

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) then you can manually install an older version of Node.js and npm as follows:

  • sudo apt install nodejs npm
  • sudo echo 'nodejs_installed: True' >> /etc/iiab/iiab_state.yml

Best to do this prior to installing IIAB!

See also late-breaking details about your individual OS:

Raspberry Pi Zero W Warning

Node.js applications like Asterisk/FreePBX, Node-RED and Sugarizer won't work on Raspberry Pi Zero W (ARMv6) if you installed Node.js while on RPi 3, 3 B+ (ARMv7) or RPi 4 (ARMv8).

If necessary, run apt remove nodejs or apt purge nodejs then rm /etc/apt/sources.list.d/nodesource.list; apt update then (attempt!) to install Node.js on the Raspberry Pi Zero W itself (a better approach than "cd /opt/iiab/iiab; ./runrole --reinstall nodejs" is to try apt install nodejs or try installing the tar file mentioned at #2082).

You'll (likely) also need 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 nec!) Finally, proceed to install Asterisk/FreePBX, Node-RED and/or Sugarizer: #1799