How can I use NodeJS modules in Meteor?
问题 In a NodeJS application ,I have finished some modules,Now I want to use them in Meteor,What should I do? For example,there is a file 'hello.js',content: require('url');// In here,require other modules function sayHi(name){ console.log("Hi "+ name); } exports.sayHi = sayHi; How do I use 'say Hi' in meteor? when I do this: if (Meteor.isServer) { Meteor.startup(function () { var require = __meteor_bootstrap__.require; var index = require('./hello'); hello.syaHi('Ec');})} Errors is: app/index.js