Did this post in your other thread not help: How can i use the node-red command line? - #5 by Steve-Mcl
Also, there are a few more midi packages on npm. This one looks decent and has node-js
examples: jzz - npm
Remember, as i said in other thread, these are NOT node-red "ready" nodes but are node modules. You can install and use a regular node module in a function node by import
ing it in the setup
tab of the function node.
See node-red docs on importing using a regular node module in a function node