[Pkg-javascript-devel] Bug#963628: Node-jest fails with: Error: Cannot find module 'import-local'

Nilesh Patra npatra974 at gmail.com
Wed Jun 24 20:18:40 BST 2020


Package: node-jest
Severity: serious

Dear Maintainer,

Node-jest fails with the following on all the node-modules I've tried yet.
Sample examples on

node-compression-webpack-plugin version 2.0.0-3
and
node-proper-lockfile version 4.1.1-2

internal/modules/cjs/loader.js:800
    throw err;
    ^

Error: Cannot find module 'import-local'
Require stack:
- /usr/share/nodejs/jest/bin/jest.js
    at Function.Module._resolveFilename
(internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/share/nodejs/jest/bin/jest.js:9:21)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/share/nodejs/jest/bin/jest.js' ]
}

Thanks!

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

Kernel: Linux 4.19.0-6-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20200625/781fc5b3/attachment.html>


More information about the Pkg-javascript-devel mailing list