tmpvar/jsdom — Issue #332: Error: ENOENT, No error '/path/to/jsdom/../package.json'
Author: mephistho
Created: 2011-10-10 15:31:36+00:00
State: open

Using jsdom with nodejs in cygwin. Same error using node.exe in Windows dircetly.

Calling:

var jsdom = require('./jsdom/jsdom.js');

var http = require('http');
var sys = require('util');

var dom = require('../../lib/jsdom/level2/html').dom.level2.html;
var browser = require('../../lib/jsdom/browser/index').windowAugmentation(dom);

var document = browser.document;

Fails with:

$ node leafletnode.js
The "sys" module is now called "util". It should have a similar interface.

node.js:208
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ENOENT, No error '/path/to/jsdom/../package.json'
at Object.openSync (fs.js:222:18)
at Object.readFileSync (fs.js:113:15)
at Object. (/path/to/jsdom/jsdom.js:5:30)
at Module._compile (module.js:425:26)
at Object..js (module.js:443:10)
at Module.load (module.js:344:31)
at Function._load (module.js:303:12)
at Module.require (module.js:350:17)
at require (module.js:361:17)
at Object. (/path/to/leafletnode.js:11:13)

Any ideas? Can't get my head around it :-/

Many thanks in advance!