persvr/persevere-example-wiki — Issue #17: Cannot run under Node.js for Windows
Author: jseguillon
Created: 2012-01-31 17:45:17+00:00
State: open

Hello,
with node.js : v0.6.9.

Tried today to run the wiki example following theses installations steps :
----------------------------------------------------------------------------
C:\Users\Utilisateur Joel\node_modules>npm install persevere-example-wiki
npm http GET https://registry.npmjs.org/persevere-example-wiki
npm http 304 https://registry.npmjs.org/persevere-example-wiki
npm http GET https://registry.npmjs.org/rql
npm http GET https://registry.npmjs.org/promised-io
npm http GET https://registry.npmjs.org/perstore
npm http GET https://registry.npmjs.org/tunguska
npm http GET https://registry.npmjs.org/requirejs
npm http GET https://registry.npmjs.org/wiky
npm http GET https://registry.npmjs.org/pintura
npm http 304 https://registry.npmjs.org/perstore
npm http 304 https://registry.npmjs.org/requirejs
npm http 304 https://registry.npmjs.org/wiky
npm WARN wiky@0.95.1 package.json: bugs['web'] should probably be bugs['url']
npm http 304 https://registry.npmjs.org/pintura
npm http 200 https://registry.npmjs.org/tunguska
npm http 200 https://registry.npmjs.org/promised-io
npm http 200 https://registry.npmjs.org/rql
npm http GET https://registry.npmjs.org/json-schema
npm http GET https://registry.npmjs.org/formidable
npm http GET https://registry.npmjs.org/jsgi-node
npm http GET https://registry.npmjs.org/templify
npm http GET https://registry.npmjs.org/websocket-server
npm http 304 https://registry.npmjs.org/websocket-server
npm http 304 https://registry.npmjs.org/templify
npm http 304 https://registry.npmjs.org/formidable
npm WARN websocket-server@1.4.04 package.json: bugs['web'] should probably be bugs['url']
npm http 200 https://registry.npmjs.org/json-schema
npm http GET https://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fkriszyp$2Fjson-schema$2Ftarball$2Fv0.2.1
npm http 200 https://registry.npmjs.org/jsgi-node
npm http 200 https://packages.dojofoundation.org/archives/https$3A$2F$2Fgithub.com$2Fkriszyp$2Fjson-schema$2Ftarball$2Fv0.2.1
persevere-example-wiki@0.0.3 ./persevere-example-wiki
+-- rql@0.3.1
+-- requirejs@1.0.5
+-- wiky@0.95.1
+-- tunguska@0.3.0
+-- promised-io@0.3.0
+-- pintura@0.3.1 (jsgi-node@0.3.0 templify@0.9.0 websocket-server@1.4.04 formidable@1.0.8)
+-- perstore@0.3.0

C:\Users\Utilisateur Joel\node_modules>cd persevere-example-wiki
--------------------------------------------------------------

Then run the example :
C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki>node index.js
The "sys" module is now called "util". It should have a similar interface.
Listening on port 8080

Try to access http://localhost:8080 : i'm redirected to http://localhost:8080/Page/Example but got an error "Cannot call method 'match' of undefined'

Trace on node.js console :
> Error: TypeError: Cannot call method 'match' of undefined
at Object. (C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\perstore\store\filesystem.js:42:29)
at startAndCall (C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\perstore\transaction.js:209:27)
at C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\perstore\transaction.js:197:15
at Object.transaction (C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\perstore\transaction.js:86:16)
at Object.get (C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\perstore\transaction.js:196:22)
at C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\pintura\node_modules\templify\lib\resolver.js:21:21
at Object.compile (C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\pintura\node_modules\templify\lib\templify.js:11:28)
at Object.serialize (C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\pintura\media\html.js:57:30)
at C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\pintura\jsgi\media.js:136:40
at C:\Users\Utilisateur Joel\node_modules\persevere-example-wiki\node_modules\promised-io\promise.js:348:29