Hi,
I am getting and odd error when I try to install jsdom, see below...
$ npm install jsdom
npm WARN install Refusing to install jsdom as a dependency of itself
Can anyone tell me if/what I'm doing wrong?
I took that to mean everything was peachy and tried the following basic code...
var jsdom = require('jsdom').jsdom;
...but it just failed with the following error...
module.js:340
throw err;
^
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/home/robin/Downloads/jsdom/lib/jsdom.js:5:16)
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.require (module.js:362:17)
Anyone know what I'm doing wrong?
Thanks in advance for your help!
Robin