Node-Red in Beaglebone Black

I am newbie to Beaglebone Black. I want to install the latest version of NODE-RED and Johnny Five on the board for a telemetry project.

I have a question. Is it necessary to configure the BBB GPIOs separately (as inputs or outputs), or is it sufficient to have Johnny Five installed?

Could someone please recommend the most comprehensive way to install all packages and libraries?

Best Regards