[Pkg-javascript-devel] Bug#742347: node-jsdom: require("jsdom") does not work in nodejs: missing cssstyle module
Daniele Di Proietto
daniele.di.proietto at gmail.com
Sat Mar 22 18:31:29 UTC 2014
Package: node-jsdom
Version: 0.8.10+dfsg1-1
Severity: normal
Dear Maintainer,
When trying to execute the line
var jsdom = require("jsdom")
in nodejs, the following error shows up:
module.js:340
throw err;
^
Error: Cannot find module 'cssstyle'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/lib/nodejs/jsdom/level2/style.js:5:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
This seems to render the package completely unusable.
I know that it would probably be possible to install 'cssstyle' using npm, but I thought the point of using node-* packages was to avoid npm as much as possible.
Please, correct me if I'm wrong
Cheers,
Daniele
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (700, 'testing'), (650, 'unstable'), (600, 'experimental'), (500, 'testing-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages node-jsdom depends on:
ii node-contextify 0.1.6-1
ii node-cssom 0.3.0-1
ii node-htmlparser 1.7.5+ds1-1
ii node-request 2.26.1-1
ii nodejs 0.10.26~dfsg1-1
node-jsdom recommends no packages.
node-jsdom suggests no packages.
-- no debconf information
More information about the Pkg-javascript-devel
mailing list