Either that or do it the "old" way. Install it manually, then require it to a globals variable in settings.js and then global.get
it in your function node.
If you don't want to hit the server's command line for the install, you could even misuse uibuilder's npm interface to install the package. Though you will end up with the packages installation folder being statically served - shouldn't have any real impact though.