The latest docker image gives us a node version of 16.20
docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red:3.1.8
Welcome to Node-RED
28 Mar 19:41:35 - [info] Node-RED version: v3.1.8
28 Mar 19:41:35 - [info] Node.js version: v16.20.2
28 Mar 19:41:35 - [info] Linux 5.15.0-100-generic x64 LE
28 Mar 19:41:36 - [info] Loading palette nodes
28 Mar 19:41:36 - [info] Settings file : /data/settings.js
28 Mar 19:41:36 - [info] Context store : 'default' [module=memory]
28 Mar 19:41:36 - [info] User directory : /data
What is the easiest way to upgrade to node -v 18 or 20 as I need it for a library?