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
Answer found from JonathanKingston on meteor irc. Referred to meteoric project
Put node modules in the projects public directory.
Use code like this to make sure it loads.
var require = __meteor_bootstrap__.require;
var path = require("path");
var fs = require('fs');
var Twit;
var twitPath = 'node_modules/twit';
var base = path.resolve('.');
if (base == '/'){
base = path.dirname(global.require.main.filename);
}
var publicPath = path.resolve(base+'/public/'+twitPath);
var staticPath = path.resolve(base+'/static/'+twitPath);
if (path.existsSync(publicPath)){
Twit = require(publicPath);
}
else if (path.existsSync(staticPath)){
Twit = require(staticPath);
}
else{
console.log('node_modules not found');
}
meteor deploy should work find after that, sill me for putting my node modules in the server dirs