With older versions of Node-RED, the only way to add additional npm modules to the Function node was to load them via your settings file and put them into global context.
Since Node-RED 1.3, it has also been possible to add additional modules to individual nodes via the editor, and not have to edit your settings file. That is also described at the link above.