If I add the node example code: var irc = require('irc'); var client = new irc.Client('irc.yourserver.com', 'myNick', { channels: ['#channel'], });
I get the error ReferenceError: require is not defined.
I also tried the npm-container package to use require which results in either in
"Meteor.npmRequire is not a function" or
"Meteor.require is not a function"
Can anyone give me a hint on how to use this wrapper properly?
Then I get “irc is not defined” and adding it to my controller providers results in “Error: [$injector:unpr] Unknown provider: ircProvider <- irc <- AppCtrl”