Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1024466

Bug#969986: [Pkg-javascript-devel] Bug#969986: Bug#969986: npm: Error: Cannot find module 'semver'

From Jonas Smedegaard <jonas@jones.dk>
Newsgroups linux.debian.bugs.dist
Subject Bug#969986: [Pkg-javascript-devel] Bug#969986: Bug#969986: npm: Error: Cannot find module 'semver'
Date 2020-09-09 21:20 +0200
Message-ID <ANdNn-4DO-3@gated-at.bofh.it> (permalink)
References (1 earlier) <ANdaG-4be-3@gated-at.bofh.it> <ANcxX-3HQ-5@gated-at.bofh.it> <ANdkm-4eK-5@gated-at.bofh.it> <ANcxX-3HQ-5@gated-at.bofh.it> <ANdkm-4eK-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Quoting Kevin Locke (2020-09-09 20:32:01)
> Did you try installing to a chroot:
> 
> debootstrap testing npm-chroot && chroot npm-chroot sh -c 'apt install -y npm && npm --version'

That's a fair questions: autopkgtest has its own set of dependencies 
which might hide this issue.

I tried above command just now (inside another chroot), and it failed:

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

Error: Cannot find module 'semver'
Require stack:
- /usr/share/npm/lib/utils/unsupported.js
- /usr/share/npm/bin/npm-cli.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/usr/share/npm/lib/utils/unsupported.js:2:14)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Module.require (internal/modules/cjs/loader.js:1025:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/share/npm/lib/utils/unsupported.js',
    '/usr/share/npm/bin/npm-cli.js'
  ]
}

The package node-semver _was_ installed.

Installing npm into a clean pbuilder chroot (either sid or bullseye) and 
running "npm --version" does not fail, however.

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#969986: npm: Error: Cannot find module 'semver' Kevin Locke <kevin@kevinlocke.name> - 2020-09-09 20:00 +0200
  Bug#969986: [Pkg-javascript-devel] Bug#969986: npm: Error: Cannot find module 'semver' Xavier <yadd@debian.org> - 2020-09-09 20:40 +0200
    Bug#969986: [Pkg-javascript-devel] Bug#969986: npm: Error: Cannot find module 'semver' Kevin Locke <kevin@kevinlocke.name> - 2020-09-09 20:50 +0200
      Bug#969986: [Pkg-javascript-devel] Bug#969986: Bug#969986: npm: Error: Cannot find module 'semver' Jonas Smedegaard <jonas@jones.dk> - 2020-09-09 21:20 +0200
        Bug#969986: [Pkg-javascript-devel] Bug#969986: Bug#969986: npm: Error: Cannot find module 'semver' Kevin Locke <kevin@kevinlocke.name> - 2020-09-09 22:20 +0200

csiph-web