isaacs/npm — Issue #1976: Installing completion works but shows errors
Author: drnic
Created: 2012-01-01 05:22:50+00:00
State: open

I ran the installer command but it showed nasty looking output:

```
$ . <(npm completion)
~/Projects/node_packages/ey_config_nodejs[master*]$ npm ERR! Error: process.stdout cannot be closed
npm ERR! at Socket. (node.js:284:15)
npm ERR! at Object.afterWrite [as oncomplete] (net.js:470:10)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "completion"
npm ERR! cwd /Users/drnic/Projects/node_packages/ey_config_nodejs
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! message process.stdout cannot be closed
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/drnic/Projects/node_packages/ey_config_nodejs/npm-debug.log
npm not ok
```

But it seems to have worked:

```
~/Projects/node_packages/ey_config_nodejs[master+*]$ npm [TAB] [TAB]
adduser config help link prefix rm star unlink
apihelp deprecate help-search list prune root start unpublish
author docs home ll publish run-script stop unstar
bin edit i ln r s submodule up
bugs explore info ls rb se tag update
c faq init outdated rebuild search test version
cache find install owner remove set un view
completion get la pack restart show uninstall whoami
```