Tf.model node error

You should be installing the modules in ~/.node-red.

The errors you got in your first screenshots are because you were running it in the wrong location.