[Pkg-javascript-devel] Bug#897438: node-gulp-load-plugins: does not load global modules by default

Paolo Greppi paolo.greppi at libpf.com
Wed May 2 16:28:26 BST 2018


Package: node-gulp-load-plugins
Version: 1.5.0-1
Severity: normal

Dear Maintainer,

while running one of the tests for node-gulp-sourcemaps 2.2.0:

git clone https://salsa.debian.org/js-team/node-gulp-sourcemaps.git
cd node-gulp-sourcemaps
sudo apt install node-gulp-concat
quilt push -a
tar xf debian/node_modules.tar
tape test/integration.js

I get:

...
# combined mapped: concat files with final combined sourcemap file
/usr/lib/nodejs/resolve/lib/sync.js:42
    throw err;
    ^

Error: Cannot find module 'gulp-concat' from '/tmp/node-gulp-sourcemaps'
    at Function.module.exports [as sync] (/usr/lib/nodejs/resolve/lib/sync.js:40:15)
    at requireFn (/usr/lib/nodejs/gulp-load-plugins/index.js:74:25)
    at Object.get [as concat] (/usr/lib/nodejs/gulp-load-plugins/index.js:117:41)

Indeed looking at the code in node-gulp-load-plugin:

https://sources.debian.org/src/node-gulp-load-plugins/1.5.0-1/index.js/#L74

it does not seem to search globally installed node modules...

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

Kernel: Linux 4.15.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages node-gulp-load-plugins depends on:
ii  node-array-unique  0.3.2-1
ii  node-fancy-log     1.2.0-1
ii  node-findup-sync   0.4.3-1
ii  node-gulplog       1.0.0-1
ii  node-has-gulplog   0.1.0-1
ii  node-micromatch    2.3.11-1
ii  node-resolve       1.4.0-1
ii  nodejs             8.11.1~dfsg-2

node-gulp-load-plugins recommends no packages.

node-gulp-load-plugins suggests no packages.

-- no debconf information



More information about the Pkg-javascript-devel mailing list