I have an application that uses the node twit module that is available via
npm install twit
I deployed the node module locally from .m
finally, I wrote like this. it works both in local and meteor sever. thx Ian :D
install npm module inside "app/public":
app/public# npm install MODULE_NAME
inside app/server/server.js:
Meteor.startup(function () {
var require = __meteor_bootstrap__.require;
var path = require('path');
var base = path.resolve('.');
var isBundle = path.existsSync(base + '/bundle');
var modulePath = base + (isBundle ? '/bundle/static' : '/public') + '/node_modules';
var MODULE_NAME = require(modulePath + '/MODULE_NAME');
});