[Pkg-javascript-devel] Bug#672388: npm: completion in Zsh causes error message regarding missing /usr/share/npm/lib/utils/completion.sh

Michael Prokop mika at debian.org
Thu May 10 16:27:51 UTC 2012


Package: npm
Version: 1.1.4~dfsg-1
Severity: normal


I'm using Zsh:

% zsh --version
zsh 4.3.17 (x86_64-unknown-linux-gnu)

which provides a completion in its package
(/usr/share/zsh/functions/Completion/Unix/_npm), but
there seems to be something fishy in the npm package.

When I press the tab key after 'npm ' then I get:

| % npm 
| npm ERR! Error: ENOENT, open '/usr/share/npm/lib/utils/completion.sh'
| npm ERR! You may report this log at:
| npm ERR!     <http://bugs.debian.org/npm>
| npm ERR! or use
| npm ERR!     reportbug --attach /home/mika/npm-debug.log npm
| npm ERR!
| npm ERR! System Linux 3.2.0-1-grml-amd64
| npm ERR! command "node" "/usr/bin/npm" "completion" "--color" "false" "--loglevel" "error" "--" "npm"
| npm ERR! cwd /home/mika
| npm ERR! node -v v0.6.17
| npm ERR! npm -v 1.1.4
| npm ERR! path /usr/share/npm/lib/utils/completion.sh
| npm ERR! code ENOENT
| npm ERR! message ENOENT, open '/usr/share/npm/lib/utils/completion.sh'
| npm ERR! errno {}
| npm ERR!
| npm ERR! Additional logging details can be found in:
| npm ERR!     /home/mika/npm-debug.log


This is the same output I also get when manually running the command
/usr/share/zsh/functions/Completion/Unix/_npm uses:

| % npm completion --color false --loglevel error --
| [<snip same message as above>]

Regarding /usr/share/npm/lib/utils/completion.sh - this file doesn't
exist:

% ls -la /usr/share/npm/lib/utils/completion.sh
ls: cannot access /usr/share/npm/lib/utils/completion.sh: No such file or directory

regards,
-mika-





More information about the Pkg-javascript-devel mailing list