node-red / node-red-docker

Repository for all things Node-RED and Docker related
Apache License 2.0
469 stars 382 forks source link

Support Node 20 #400

Closed carefulcomputer closed 6 months ago

carefulcomputer commented 6 months ago

Current recommended version of node for node-red are node 18 and node 20. However this docker repo only provides node 16 and node 18. Since several of use packages which rely on newer versions, please also add docker images for node 20.

hardillb commented 6 months ago

The move to nodejs 20 will be with the release of Node-RED 4.0

carefulcomputer commented 6 months ago

Thanks for quick response. Just wondering if there is some technical issues in supporting node 20 or is it just related to additional effort required ? I can try to make a pull request if there is any interest.

hardillb commented 6 months ago

We will not be increasing the number of builds we need to support.

You can build your own containers using the scripts provided in the docker-custom directory if needed

carefulcomputer commented 5 months ago

Thank you. I recognize the effort required to support multiple build versions. However, for this project, I think it should track the currently recommended versions (as listed on node-red page) rather than legacy versions that, while still supported, are not up-to-date. Legacy versions cause other problems (e.g. nodejs package 'got' latest version doesn't support nodejs16, so it makes it impossible to use it in this docker image).