I uninstalled nowjs and re-installed. It seems to install the same
version. I could be wrong. I'm getting the same errors.
iMac:~ [REMOVED]$ npm uninstall now
npm info it worked if it ends with ok
npm info using n...@0.3.18
npm info using n...@v0.4.7
npm info preuninstall n...@0.6.0
npm info uninstall n...@0.6.0
npm info predeactivate n...@0.6.0
npm info deactivate n...@0.6.0
npm info postdeactivate n...@0.6.0
npm info postuninstall n...@0.6.0
npm info uninstall n...@0.6.0 complete
npm ok
iMac:~ [REMOVED]$ npm install now
npm info it worked if it ends with ok
npm info using n...@0.3.18
npm info using n...@v0.4.7
npm info preinstall n...@0.6.0
npm info install n...@0.6.0
npm info postinstall n...@0.6.0
npm info preactivate n...@0.6.0
npm info activate n...@0.6.0
npm info postactivate n...@0.6.0
npm info build Success: n...@0.6.0
npm ok
On May 18, 3:27 pm, Darshan Shankar <d.n.shan...@gmail.com> wrote:
> I uninstalled nowjs and re-installed. It seems to install the same
> version. I could be wrong. I'm getting the same errors.
> iMac:~ [REMOVED]$ npm uninstall now
> npm info it worked if it ends with ok
> npm info using n...@0.3.18
> npm info using n...@v0.4.7
> npm info preuninstall n...@0.6.0
> npm info uninstall n...@0.6.0
> npm info predeactivate n...@0.6.0
> npm info deactivate n...@0.6.0
> npm info postdeactivate n...@0.6.0
> npm info postuninstall n...@0.6.0
> npm info uninstall n...@0.6.0 complete
> npm ok
> iMac:~ [REMOVED]$ npm install now
> npm info it worked if it ends with ok
> npm info using n...@0.3.18
> npm info using n...@v0.4.7
> npm info preinstall n...@0.6.0
> npm info install n...@0.6.0
> npm info postinstall n...@0.6.0
> npm info preactivate n...@0.6.0
> npm info activate n...@0.6.0
> npm info postactivate n...@0.6.0
> npm info build Success: n...@0.6.0
> npm ok
> On May 18, 3:27 pm, Darshan Shankar <d.n.shan...@gmail.com> wrote:
> > Hey Don,
> > There was a bug in the nowjs on npm that has been fixed. Please uninstall
> > nowjs (npm uninstall now) and reinstall nowjs (npm install now).
> > Darshan
> > On Tue, May 17, 2011 at 7:58 PM, Don <don.newelem...@gmail.com> wrote:
> > > I also want to note this log when starting the server.
> > > 17 May 22:51:56 - socket.io ready - accepting connections
> > > { stack: [Getter/Setter],
> > > arguments: [ 'limits', undefined ],
> > > type: 'non_object_property_load',
> > > message: [Getter/Setter] }
> > > TypeError: Cannot read property 'limits' of undefined
> > > at Object.initialize (/usr/lib/node/.npm/now/0.6.0/package/lib/
> > > nowServerLib.js:297:48)
> > > at Object.<anonymous> (/Users/[REMOVED]/Sites/local_test/
> > > server_now.js:12:22)
> > > at Module._compile (module.js:404:26)
> > > at Object..js (module.js:410:10)
> > > at Module.load (module.js:336:31)
> > > at Function._load (module.js:297:12)
> > > at Array.<anonymous> (module.js:423:10)
> > > at EventEmitter._tickCallback (node.js:126:26)
> > > could not connect to lb
> > > { stack: [Getter/Setter],
> > > arguments: undefined,
> > > type: undefined,
> > > message: 'Redis connection to 127.0.0.1:6379 failed - ECONNREFUSED,
> > > Connection refused' }
> > > Error: Redis connection to 127.0.0.1:6379 failed - ECONNREFUSED,
> > > Connection refused
> > > at Socket.<anonymous> (/usr/lib/node/.npm/now/0.6.0/package/
> > > node_modules/redis/index.js:120:28)
> > > at Socket.emit (events.js:64:17)
> > > at Array.<anonymous> (net.js:828:27)
> > > at EventEmitter._tickCallback (node.js:126:26)
> > > On May 17, 10:54 pm, Don <don.newelem...@gmail.com> wrote:
> > > > Greetings, following examples and getting error in Firebug console
> 18 May 17:29:06 - socket.io ready - accepting connections
> { stack: [Getter/Setter],
> arguments: [ 'limits', undefined ],
> type: 'non_object_property_load',
> message: [Getter/Setter] }
> TypeError: Cannot read property 'limits' of undefined
> at Object.initialize (/usr/lib/node/.npm/now/0.6.0/package/lib/
> nowServerLib.js:297:48)
> at Object.<anonymous> (/Users/[REMOVED]/Sites/local_test/
> server_now.js:11:31)
> at Module._compile (module.js:404:26)
> at Object..js (module.js:410:10)
> at Module.load (module.js:336:31)
> at Function._load (module.js:297:12)
> at Array.<anonymous> (module.js:423:10)
> at EventEmitter._tickCallback (node.js:126:26)
> could not connect to lb
> { stack: [Getter/Setter],
> arguments: undefined,
> type: undefined,
> message: 'Redis connection to 127.0.0.1:6379 failed - ECONNREFUSED,
> Connection refused' }
> Error: Redis connection to 127.0.0.1:6379 failed - ECONNREFUSED,
> Connection refused
> at Socket.<anonymous> (/usr/lib/node/.npm/now/0.6.0/package/
> node_modules/redis/index.js:120:28)
> at Socket.emit (events.js:64:17)
> at Array.<anonymous> (net.js:828:27)
> at EventEmitter._tickCallback (node.js:126:26)
> On May 18, 5:06 pm, Don <don.newelem...@gmail.com> wrote:
> > I uninstalled nowjs and re-installed. It seems to install the same
> > version. I could be wrong. I'm getting the same errors.
> > iMac:~ [REMOVED]$ npm uninstall now
> > npm info it worked if it ends with ok
> > npm info using n...@0.3.18
> > npm info using n...@v0.4.7
> > npm info preuninstall n...@0.6.0
> > npm info uninstall n...@0.6.0
> > npm info predeactivate n...@0.6.0
> > npm info deactivate n...@0.6.0
> > npm info postdeactivate n...@0.6.0
> > npm info postuninstall n...@0.6.0
> > npm info uninstall n...@0.6.0 complete
> > npm ok
> > iMac:~ [REMOVED]$ npm install now
> > npm info it worked if it ends with ok
> > npm info using n...@0.3.18
> > npm info using n...@v0.4.7
> > npm info preinstall n...@0.6.0
> > npm info install n...@0.6.0
> > npm info postinstall n...@0.6.0
> > npm info preactivate n...@0.6.0
> > npm info activate n...@0.6.0
> > npm info postactivate n...@0.6.0
> > npm info build Success: n...@0.6.0
> > npm ok
> > On May 18, 3:27 pm, Darshan Shankar <d.n.shan...@gmail.com> wrote:
> > > Hey Don,
> > > There was a bug in the nowjs on npm that has been fixed. Please uninstall
> > > nowjs (npm uninstall now) and reinstall nowjs (npm install now).
> > > Darshan
> > > On Tue, May 17, 2011 at 7:58 PM, Don <don.newelem...@gmail.com> wrote:
> > > > I also want to note this log when starting the server.
I am missing your thread of conversation on this,
Would you share the code/context that is causing this error? Or a simple
(server and client code) example that exhibits this TypeError.
--Thanks
On Tue, Jul 24, 2012 at 11:57 PM, Jay Are Galinada <jayaregalin...@gmail.com
Noong Miyerkules, Hulyo 25 2012 21:14:23 UTC+8, si Nate ay sumulat:
> I am missing your thread of conversation on this, > Would you share the code/context that is causing this error? Or a simple > (server and client code) example that exhibits this TypeError. > --Thanks
Visit http://jayare.swakfm.com:8000 I run the nowjs in port 8000 and when I want to add text/message I got this kind of error in the console log I used the example in the video.
Your demo actually works for me, so unless you have fixed something, it
might be an intermittent timing problem.
You might try waiting for the "now.ready" event, before you do start up all
your now code.
// see now.ready( function () { // added to wait for the now object to be
fully initialized.
$(function(){
now.ready( function () { // added to wait for the now object to be
fully initialized.
now.name = prompt("My name is?", "");
console.log(now);
now.receiveMsg = function(name, msg){
$("<div></div>").text(name +" : "+ msg).appendTo("#msg");
};
$("#send").click(function(){
var text = $("#text").val();
now.distributeMsg(text);
$("#text").val("");
});
});
})
On Thu, Jul 26, 2012 at 4:49 AM, Jay Are Galinada
<jayaregalin...@gmail.com>wrote:
> Noong Miyerkules, Hulyo 25 2012 21:14:23 UTC+8, si Nate ay sumulat:
>> I am missing your thread of conversation on this,
>> Would you share the code/context that is causing this error? Or a simple
>> (server and client code) example that exhibits this TypeError.
>> --Thanks
> Visit http://jayare.swakfm.com:8000 > I run the nowjs in port 8000 and when I want to add text/message I got
> this kind of error in the console log
> I used the example in the video.
It seems like it doesn't work that way, I've tried everything what I can do, but still, it doesn't work. I also used the code above but the prompt function doesn't run.
Noong Huwebes, Hulyo 26 2012 21:59:57 UTC+8, si Nate ay sumulat:
> Your demo actually works for me, so unless you have fixed something, it > might be an intermittent timing problem. > You might try waiting for the "now.ready" event, before you do start up > all your now code.
> // see now.ready( function () { // added to wait for the now object to be > fully initialized.
> $(function(){ > now.ready( function () { // added to wait for the now object to be > fully initialized. > now.name = prompt("My name is?", ""); > console.log(now); > now.receiveMsg = function(name, msg){ > $("<div></div>").text(name +" : "+ msg).appendTo("#msg"); > }; > $("#send").click(function(){ > var text = $("#text").val(); > now.distributeMsg(text); > $("#text").val(""); > }); > }); > })
> On Thu, Jul 26, 2012 at 4:49 AM, Jay Are Galinada < > jayaregalin...@gmail.com> wrote:
>> Noong Miyerkules, Hulyo 25 2012 21:14:23 UTC+8, si Nate ay sumulat:
>>> I am missing your thread of conversation on this, >>> Would you share the code/context that is causing this error? Or a simple >>> (server and client code) example that exhibits this TypeError. >>> --Thanks
>> Visit http://jayare.swakfm.com:8000 >> I run the nowjs in port 8000 and when I want to add text/message I got >> this kind of error in the console log >> I used the example in the video.
> It seems like it doesn't work that way, I've tried everything what I can
> do, but still, it doesn't work.
> I also used the code above but the prompt function doesn't run.
> Noong Huwebes, Hulyo 26 2012 21:59:57 UTC+8, si Nate ay sumulat:
>> Your demo actually works for me, so unless you have fixed something, it
>> might be an intermittent timing problem.
>> You might try waiting for the "now.ready" event, before you do start up
>> all your now code.
>> // see now.ready( function () { // added to wait for the now object to be
>> fully initialized.
>> $(function(){
>> now.ready( function () { // added to wait for the now object to be
>> fully initialized.
>> now.name = prompt("My name is?", "");
>> console.log(now);
>> now.receiveMsg = function(name, msg){
>> $("<div></div>").text(name +" : "+ msg).appendTo("#msg");
>> };
>> $("#send").click(function(){
>> var text = $("#text").val();
>> now.distributeMsg(text);
>> $("#text").val("");
>> });
>> });
>> })
>> On Thu, Jul 26, 2012 at 4:49 AM, Jay Are Galinada <
>> jayaregalin...@gmail.com> wrote:
>>> Noong Miyerkules, Hulyo 25 2012 21:14:23 UTC+8, si Nate ay sumulat:
>>>> I am missing your thread of conversation on this,
>>>> Would you share the code/context that is causing this error? Or a
>>>> simple (server and client code) example that exhibits this TypeError.
>>>> --Thanks
>>> Visit http://jayare.swakfm.com:8000 >>> I run the nowjs in port 8000 and when I want to add text/message I got
>>> this kind of error in the console log
>>> I used the example in the video.
Yeah, no errors and not running, and the prompt function doesn't execute in the first load as expected. However, the polling is executed every time. I'm using Firefox v14.0.1 and Google Chrome v20.0.1132.57 m This is my nodejs server configuration
var fs = require("fs"); var http = require("http"); var nowjs = require("now"); server = http.createServer(function(req, res){ fs.readFile("index.html", function(err, data){ res.writeHead(200, {"Content-Type": "text/html"}); res.write(data); res.end(); });