[Pkg-javascript-devel] Bug#927868: node-js-beautify: html-beautify and css-beautify have throw error
Bart Libert
bart.libert at gmail.com
Wed Apr 24 11:49:40 BST 2019
Package: node-js-beautify
Version: 1.7.5+dfsg-2
Severity: important
Dear Maintainer,
When running css-beautify or html-beautify on a css or html respectively, they both throw the error below:
css-beautify style.css
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module './lib/fnmatch'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/usr/lib/nodejs/js-beautify/node_modules/editorconfig/index.js:41:17)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
This issue does not occur when I install the js-beautify package locally with npm install js-beautify.
In that case, I also see that the editorconfig module contains the requested file lib/fnmatch, while it is not present in
/usr/lib/nodejs/js-beautify/node_modules/editorconfig (it does not even contain a lib directory)
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-debug'), (400, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages node-js-beautify depends on:
ii node-config-chain 1.1.11-1
ii node-mkdirp 0.5.1-1
ii node-nopt 3.0.6-3
ii node-semver 5.5.1-1
ii node-sigmund 1.0.0-1
ii nodejs 10.15.2~dfsg-2
Versions of packages node-js-beautify recommends:
ii jsbeautifier 1.6.4-7
node-js-beautify suggests no packages.
-- no debconf information
More information about the Pkg-javascript-devel
mailing list