On Sun, Dec 30, 2012 at 9:31 AM, Kamil Krzyszczuk <[email protected] > wrote:
> Sry for my missunderstanding :) didn't know that there is official > registry and options for others. So i tried it: > > npm install git://github.com/LearnBoost/socket.io.git > > but this installed just a 0.9.11 version. Maybe I copied wrong link, this > is 1.0 branch: > https://github.com/LearnBoost/socket.io/tree/1.0 > > can someone look at it and say where is a link that should be to copied? > You need to add the tag to the URL. You'll also need to install the client first. Try this: $ npm install git://github.com/LearnBoost/socket.io-client.git#1.0 $ npm install git://github.com/LearnBoost/socket.io.git#1.0 It worked for me. -- Martin Cooper > > 2012/12/30 Martin Cooper <[email protected]> > >> >> >> On Sun, Dec 30, 2012 at 8:55 AM, Kamil Krzyszczuk < >> [email protected]> wrote: >> >>> Nuno, read posts. Socket.io 1.0 isn't present in NPM yet. >>> >> >> As I said in my previous post, you can use npm to install it from the >> tarball. That is, "use npm", as Nuno said, or "npm install >> gitrepostiroy#branch", as Jose said, are *not* the same as "install from >> the registry". We understand you can't install from the registry. We're >> trying to give you workable alternatives. :) >> >> -- >> Martin Cooper >> >> >> >>> 2012/12/30 Nuno Job <[email protected]> >>> >>>> Use npm. >>>> >>>> Nuno >>>> >>>> Sent from my iPhone >>>> >>>> On Dec 30, 2012, at 4:13 PM, hashi101 <[email protected]> >>>> wrote: >>>> >>>> I try to install Socket.io 1.0,so I downloaded socket.io-1.0 and >>>> socket.io-client-1.0 packages. And put it in node_modules folder. Changed >>>> "socket.io-client" to "socket.io.client-1.0" in some files, because they >>>> except the first name. And then I run sample application: >>>> >>>> var io = require('socket.io-1.0')(7001); >>>> >>>> io.on('connection', function(socket){ >>>> socket.on('event', function(data){}); >>>> socket.on('disconnect', function(){}); >>>> }); >>>> >>>> output was full of not installed modules, so I installed them up, and >>>> now, when I run code above, get this: >>>> >>>> io.on('connection', function(socket){ >>>> ^ >>>> TypeError: Object #<Server> has no method 'on' >>>> at Object.<anonymous> (/usr/home/user/programs/soc10/soc.js:3:4) >>>> at Module._compile (module.js:449:26) >>>> at Object.Module._extensions..js (module.js:467:10) >>>> at Module.load (module.js:356:32) >>>> at Function.Module._load (module.js:312:12) >>>> at Module.runMain (module.js:492:10) >>>> at process.startup.processNextTick.process._tickCallback >>>> (node.js:244:9) >>>> >>>> it should work. What i've done wrong? >>>> >>>> -- >>>> Job Board: http://jobs.nodejs.org/ >>>> Posting guidelines: >>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>>> You received this message because you are subscribed to the Google >>>> Groups "nodejs" group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/nodejs?hl=en?hl=en >>>> >>>> -- >>>> Job Board: http://jobs.nodejs.org/ >>>> Posting guidelines: >>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>>> You received this message because you are subscribed to the Google >>>> Groups "nodejs" group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/nodejs?hl=en?hl=en >>>> >>> >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: >>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
