- From: Manu Sporny <msporny@digitalbazaar.com>
- Date: Sat, 01 Feb 2014 21:00:00 -0500
- To: Web Payments CG <public-webpayments@w3.org>
On 02/01/2014 02:53 PM, Brent Shambaugh wrote: > Hello all. I am still new to node.js and javascript and I am trying > to register a key for > https://hacks.mozilla.org/2013/04/web-payments-with-payswarm-identity-part-1-of-3/ Closing the loop on this in case anyone finds this email thread via a search engine. From the #payswarm IRC channel on freenode: [Sat 14:46] <bshambaugh> Hello all. I am still new to node.js and javascript and I am trying to register a key for https://hacks.mozilla.org/2013/04/web-payments-with-payswarm-identity-part-1-of-3/ [Sat 14:46] <bshambaugh> I get this output when I type "node register-new-key.js" in the terminal: [Sat 14:47] <bshambaugh> var nodeContextLoader = jsonld.contextLoaders.node({secure: true}); [Sat 14:47] <bshambaugh> ^ [Sat 14:47] <bshambaugh> TypeError: Cannot call method 'node' of undefined [Sat 14:53] <bshambaugh> I just put this on the mailing list [Sat 14:55] <dlongley_> bshambaugh: looks like you're using an out-of-date version of the payswarm client [Sat 15:03] <bshambaugh> Yes, it was pulled around the time the tutorial came out I think. [Sat 15:03] <dlongley> bshambaugh: yeah, you should try a more up-to-date version [Sat 15:04] <dlongley> there was likely a bug in the packaging of that version that resulted in some dependencies getting updated in a way that was incompatible with the library [Sat 15:09] <bshambaugh> Yes, I also had to install a few node modules such as async, ursa, and jsonld before I got to that. Maybe this was expected. I will clone the latest git repository and see what that does. Thanks. [Sat 15:22] -->| cagedwisdom (~X@124-170-84-101.dyn.iinet.net.au) has joined #payswarm [Sat 16:11] <bshambaugh> Success! [Sat 16:11] <bshambaugh> Completed registration of new public key: [Sat 16:11] <bshambaugh> Public Key Owner : https://dev.payswarm.com/i/brentshambaugh [Sat 16:11] <bshambaugh> Financial Account: https://dev.payswarm.com/i/brentshambaugh/accounts/primary [Sat 16:11] <bshambaugh> Public Key URL : https://dev.payswarm.com/i/brentshambaugh/keys/1 [Sat 16:11] <bshambaugh> Config written to: "/home/brent/.config/payswarm1/default" [Sat 16:12] <bshambaugh> Thank you! [Sat 16:53] <dlongley> sure! ... yeah you need to do "npm install" to install the required dependencies [Sat 16:53] <dlongley> you can also just "npm install payswarm" to install the client entirely -- manu -- Manu Sporny (skype: msporny, twitter: manusporny, G+: +Manu Sporny) Founder/CEO - Digital Bazaar, Inc. blog: The Worlds First Web Payments Workshop http://www.w3.org/2013/10/payments/
Received on Sunday, 2 February 2014 02:00:31 UTC