Update this solution describes how to effectively use the new Npm system in Meteor.
What is the current method of using NPM packages i
The current way of using NPMs in Meteor
x.js --------
X = Npm.require('x');
package.js --------
Package.describe({
summary: "Meteor smart package for x node.js package"
});
Npm.depends({
"x": "0.1.1"
});
Package.on_use(function (api) {
api.add_files("x.js", ["client", "server"]);
});
Note: some packages will only work on client or server, if you are having issues, try only include the side you are going to use it on.