javascript - Cannot find module 'parseuri' -


when create app.js content:

    var app = require('express')();      var http = require('http').server(app);      var io = require('socket.io')(http);      app.get('/', function(req, res){   res.sendfile(__dirname + '/views/index.html'); });      http.listen(3000, function(){   console.log('listening on *:3000'); }); 

i got error :

module.js:340     throw err;           ^ error: cannot find module 'parseuri'     @ function.module._resolvefilename (module.js:338:15)     @ function.module._load (module.js:280:25)     @ module.require (module.js:364:17)     @ require (module.js:380:17)     @ object.<anonymous> (d:\workspace\node\node_modules\socket.io\lib\url.js:6:16)     @ module._compile (module.js:456:26)     @ object.module._extensions..js (module.js:474:10)     @ module.load (module.js:356:32)     @ function.module._load (module.js:312:12)     @ module.require (module.js:364:17) 

thanks supporting !

well... should read error first, if says don't have module "parseuri", install then.

make folder named "node_modules" on root dir of project, go console , type npm install parseuri or npm install -g parseuri make global.

that's can info gave.

you can search modules info in the official npm page, here's parseuri


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -