You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do npm install shoutcast, then I create test.js with this content:
var cast = require('shoutcast');
var station = cast.Station(conf);
http.createServer(function (req, res) {
station.connect(res, function() {
console.log("Stream ended?");
});
}).listen(7000);
station.start();
When I do node ./test.js I get
module.js:338
throw err;
^
Error: Cannot find module 'shoutcast'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/mf/code/shoutcast/server.js:1:74)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
I tried a different node module and that worked, so I don't think it's anything to do with my paths - could it be that shoutcast-node is using an old way of doing modules or something?
The text was updated successfully, but these errors were encountered:
I do
npm install shoutcast
, then I createtest.js
with this content:When I do
node ./test.js
I getI tried a different node module and that worked, so I don't think it's anything to do with my paths - could it be that shoutcast-node is using an old way of doing modules or something?
The text was updated successfully, but these errors were encountered: