Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#756603: npm list fails: Cannot find module 'ansicolors'

281 views
Skip to first unread message

Matthijs Kooijman

unread,
Jul 31, 2014, 5:50:01 AM7/31/14
to
Package: npm
Version: 1.4.21+ds-1
Severity: normal

Dear maintainer,

The npm list command (in unstable) seems to use the ansicolors module,
but AFAICS it is not available in Debian yet?

matthijs@grubby:~$ npm list
npm ERR! Error: Cannot find module 'ansicolors'
npm ERR! at Function.Module._resolveFilename (module.js:338:15)
npm ERR! at Function.Module._load (module.js:280:25)
npm ERR! at Module.require (module.js:364:17)
npm ERR! at require (module.js:380:17)
npm ERR! at Object.<anonymous> (/usr/share/npm/lib/ls.js:18:13)
npm ERR! at Module._compile (module.js:456:26)
npm ERR! at Object.Module._extensions..js (module.js:474:10)
npm ERR! at Module.load (module.js:356:32)
npm ERR! at Function.Module._load (module.js:312:12)
npm ERR! at Module.require (module.js:364:17)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.14-1-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "list"
npm ERR! cwd /home/matthijs
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code MODULE_NOT_FOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/matthijs/npm-debug.log
npm ERR! not ok code 0

Gr.

Matthijs

-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages npm depends on:
ii node-abbrev 1.0.4-2
ii node-ansi 0.2.1-1
ii node-ansi-color-table 1.0.0-1
ii node-archy 0.0.2-1
ii node-block-stream 0.0.7-1
ii node-fstream 0.1.24-1
ii node-fstream-ignore 0.0.6-2
ii node-github-url-from-git 1.1.1-1
ii node-glob 3.2.6-1
ii node-graceful-fs 2.0.0-2
ii node-gyp 0.12.2+ds-1
ii node-inherits 2.0.0-1
ii node-ini 1.1.0-1
ii node-lockfile 0.4.1-1
ii node-lru-cache 2.3.1-1
ii node-minimatch 0.2.12-1
ii node-mkdirp 0.3.5-1
ii node-nopt 3.0.1-1
ii node-npmlog 0.0.4-1
ii node-once 1.1.1-1
ii node-osenv 0.0.3-1
ii node-read 1.0.4-1
ii node-read-package-json 1.1.3-1
ii node-request 2.26.1-1
ii node-retry 0.6.0-1
ii node-rimraf 2.2.2-2
ii node-semver 2.1.0-2
ii node-sha 1.2.3-1
ii node-slide 1.1.4-1
ii node-tar 0.1.18-1
ii node-underscore 1.4.4-2
ii node-which 1.0.5-2
ii nodejs 0.10.29~dfsg-1

npm recommends no packages.

npm suggests no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Jérémy Lal

unread,
Aug 3, 2014, 7:40:02 PM8/3/14
to
Le jeudi 31 juillet 2014 à 11:40 +0200, Matthijs Kooijman a écrit :
Package: npm
> Version: 1.4.21+ds-1
> Severity: normal
>
> Dear maintainer,
>
> The npm list command (in unstable) seems to use the ansicolors module,
> but AFAICS it is not available in Debian yet?
>

I overlooked that.

It's being solved by
- adding a simpler api to 'ansi' module
https://github.com/TooTallNate/ansi.js/pull/17
i am waiting a little to see if upstream accepts that patch or not
- patching npm to get rid of ansicolors/ansistyles,
this is easy once previous ansi patch is available.

Jérémy.
0 new messages