micro-ROS / micro-ROS_crazyflie_demo

Provides a demo of micro-ROS based on a Crazyflie.
Apache License 2.0
18 stars 6 forks source link

update nodejs version #19

Closed chaos4ros2 closed 2 years ago

chaos4ros2 commented 2 years ago

node.js version problem occurred in micro-ROS_crazyflie_demo/dockerfile/visualizer/Dockerfile

rclnodejs 0.20.0 requires node.js 10.23.1 or higher (and <13.0.0), apt install nodejs will only install 10.19.0 by default and will get a error like blow.

node

So I added a process to install node.js 12. I also remove npm because it is included in node.js.

Feel free to change it if you have a better solution. The following sites are for your reference. https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04