[Pkg-javascript-devel] Bug#979383: npm update -g error: no such file or directory, scandir '/usr/local/lib/node_modules'

2021-01-05 Thread Bart
Package: npm
Version: 7.3.0+ds-2
Severity: normal
X-Debbugs-Cc: bart...@gmail.com

Dear Maintainer,

I am unable to run `npm update -g` on a newly built container based on
debian:testing.

Instead, I get the following error:

```
 > [4/4] RUN npm update -g:
#7 0.804 npm ERR! code ENOENT
#7 0.804 npm ERR! syscall scandir
#7 0.804 npm ERR! path /usr/local/lib/node_modules
#7 0.804 npm ERR! errno -2
#7 0.805 npm ERR! enoent ENOENT: no such file or directory, scandir 
'/usr/local/lib/node_modules'
#7 0.805 npm ERR! enoent This is related to npm not being able to find a file.
#7 0.805 npm ERR! enoent
#7 0.817
#7 0.817 npm ERR! A complete log of this run can be found in:
#7 0.817 npm ERR! /root/.npm/_logs/2021-01-05T22_38_24_940Z-debug.log
```

Steps to reproduce:

Create the following Dockerfile:
```
FROM 
debian:testing@sha256:8169043352db303b39fd9b6daa39ad3d5ea994c94bb9c0cdf56d97144858434c
RUN apt-get update
RUN apt-get install -y npm
RUN npm update -g
```

Then run `docker build .`

Note that I have not attempted to reproduce the problem on a full VM
install, and presume that the same bug would be present.

Expected output:

```
 > npm update -g

up to date, audited 1 package in 377ms

found 0 vulnerabilities
```

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-5-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages npm depends on:
ii  ca-certificates 20200601
ii  node-abbrev 1.1.1-2
ii  node-agent-base 6.0.2-1
ii  node-ajv6.12.6-2
ii  node-ansi   0.3.1-1
ii  node-ansi-regex 5.0.0-1
ii  node-ansi-styles4.2.1-1
ii  node-ansistyles 0.1.3-2
ii  node-aproba 2.0.0-1
ii  node-archy  1.0.0-3
ii  node-are-we-there-yet   1.1.5-1
ii  node-asap   2.0.6-2
ii  node-asn1   0.2.3-2
ii  node-assert-plus1.0.0-2
ii  node-asynckit   0.4.0-3
ii  node-aws-sign2  0.7.1-2
ii  node-aws4   1.11.0-1
ii  node-balanced-match 1.0.0-1
ii  node-bcrypt-pbkdf   1.0.2-1
ii  node-brace-expansion2.0.0-1
ii  node-builtins   1.0.3-2
ii  node-cacache15.0.5+~cs13.9.21-1
ii  node-caseless   0.12.1-1
ii  node-chalk  4.1.0-1
ii  node-chownr 1.1.3-5
ii  node-clone  2.1.2-2
ii  node-color-convert  1.9.3-1
ii  node-color-name 1.1.4+~1.1.1-1
ii  node-colors 1.4.0-1
ii  node-columnify  1.5.4-3
ii  node-combined-stream1.0.8-1
ii  node-concat-map 0.0.1-2
ii  node-console-control-strings1.1.0-2
ii  node-core-util-is   1.0.2-2
ii  node-dashdash   2.0.0-1
ii  node-debug  4.3.1+~cs4.1.5-1
ii  node-defaults   1.0.3-2
ii  node-delayed-stream 1.0.0-4
ii  node-delegates  1.0.0-2
ii  node-depd   2.0.0-1
ii  node-ecc-jsbn   0.2.0-2
ii  node-encoding   0.1.13-1
ii  node-err-code   2.0.3+dfsg-1
ii  node-extend 3.0.2-1
ii  node-extsprintf 1.4.0-1
ii  node-fast-deep-equal3.1.3-1
ii  node-forever-agent  0.6.1-2
ii  node-form-data  3.0.0-2
ii  node-fs.realpath1.0.0-1.1
ii  node-function-bind  1.1.1+repack-1
ii  node-gauge  2.7.4-1.1
ii  node-getpass0.1.7-1.1
ii  node-glob   7.1.6+~7.1.3-1
ii  node-graceful-fs4.2.4+repack-1
ii  node-gyp7.1.2-2
ii  node-har-schema 2.0.0-4
ii  node-har-validator  5.1.5-1
ii  node-has-flag   4.0.0-1
ii  node-http-signature 1.3.5-1
ii  node-https-proxy-agent  5.0.0-2
ii  node-iconv-lite 0.5.1-3
ii  node-imurmurhash0.1.4-1.1
ii  node-indent-string  4.0.0-1
ii  node-inflight   1.0.6-1.1
ii  node-inherits   2.0.4-1
ii  node-ini2.0.0-1
ii  node-ip 1.1.5-5
ii  node-ip-regex   4.1.0-2
ii  node-is-typedarray  1.0.0-3
ii  node-isarray2.0.5-1
ii  node-isexe  2.0.0-4
ii  node-isstream   0.1.2+dfsg-1.1
ii  node-jsbn   1.1.0-1.1
ii  node-json-parse-better-

[Pkg-javascript-devel] Bug#927868: node-js-beautify: html-beautify and css-beautify have throw error

2019-04-24 Thread Bart Libert
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. 
(/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-mkdirp0.5.1-1
ii  node-nopt  3.0.6-3
ii  node-semver5.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

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

[Pkg-javascript-devel] Bug#915100: node-js-beautify: css-beautify depens on node-semver and node-sigmund

2018-11-30 Thread Bart Libert
Package: node-js-beautify
Version: 1.7.5+dfsg-1
Severity: important

Dear Maintainer,

This package also installs css-beautify. This program depends on two other 
node-packages that are not added to the
dependencies, namely node-sigmund and node-semver. After manually installing 
these packages, css-beautify works

-- 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.18.0-2-amd64 (SMP w/4 CPU cores)
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-mkdirp0.5.1-1
ii  node-nopt  3.0.6-3
ii  nodejs 8.11.2~dfsg-1

node-js-beautify recommends no packages.

node-js-beautify suggests no packages.

-- no debconf information

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel