isaacs/npm — Issue #1775: NPM On windows: npm bugs produces error when browser window closed
Author: markcowl
Created: 2011-11-23 20:39:43+00:00
State: open

error text:

"When using npm bugs with a proper browser setting, closing the browser window results in an npm error (rather than command completion): C:\Users\markcowl\azure\MyApp\WebRole1>npm bugs express
npm ERR! Failed to open http://github.com/visionmedia/express/issues in a browse
r. It could be that the
npm ERR! 'browser' config is not set. Try doing this:
npm ERR! npm config set browser google-chrome
npm ERR! or:
npm ERR! npm config set browser lynx
npm ERR!
npm ERR! Error: `c:\Program Files\Internet Explorer\iexplore.exe ""http://github.
com/visionmedia/express/issues""` failed with 1
npm ERR! at ChildProcess. (C:\Program Files (x86)\nodejs\node_mod
ules\npm\lib\utils\exec.js:49:20)
npm ERR! at ChildProcess.emit (events.js:70:17)
npm ERR! at maybeExit (child_process.js:359:16)
npm ERR! at Process.onexit (child_process.js:395:5)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Windows_NT 6.1.7600
npm ERR! command ""C:\\Program Files (x86)\\nodejs\\\\node.exe"" ""C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"" ""bugs"" ""express""
npm ERR! cwd C:\Users\markcowl\azure\MyApp\WebRole1
npm ERR! node -v v0.6.2
npm ERR! npm -v 1.1.0-alpha
npm ERR! message `c:\Program Files\Internet Explorer\iexplore.exe ""http://github
.com/visionmedia/express/issues""` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\markcowl\azure\MyApp\WebRole1\npm-debug.log
npm not ok"

debug log:

info it worked if it ends with ok
verbose cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe',
verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
verbose cli 'bugs',
verbose cli 'express' ]
info using npm@1.1.0-alpha
info using node@v0.6.2
verbose config file C:\Users\markcowl\.npmrc
verbose config file C:\Program Files (x86)\etc\npmrc
verbose config file C:\Program Files (x86)\nodejs\node_modules\npm\npmrc
verbose registry.get express/latest not expired, no request
verbose repository git://github.com/visionmedia/express.git
silly exec c:\Program Files\Internet Explorer\iexplore.exe "http://github.com/visionmedia/express/issues"
silly spawning [ 'c:\\Program Files\\Internet Explorer\\iexplore.exe',
silly spawning [ 'http://github.com/visionmedia/express/issues' ],
silly spawning null ]
ERR! Failed to open http://github.com/visionmedia/express/issues in a browser. It could be that the
ERR! 'browser' config is not set. Try doing this:
ERR! npm config set browser google-chrome
ERR! or:
ERR! npm config set browser lynx
ERR!
ERR! Error: `c:\Program Files\Internet Explorer\iexplore.exe "http://github.com/visionmedia/express/issues"` failed with 1
ERR! at ChildProcess. (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\exec.js:49:20)
ERR! at ChildProcess.emit (events.js:70:17)
ERR! at maybeExit (child_process.js:359:16)
ERR! at Process.onexit (child_process.js:395:5)
ERR! Report this *entire* log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Windows_NT 6.1.7600
ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "bugs" "express"
ERR! cwd C:\Users\markcowl\azure\MyApp\WebRole1
ERR! node -v v0.6.2
ERR! npm -v 1.1.0-alpha
ERR! message `c:\Program Files\Internet Explorer\iexplore.exe "http://github.com/visionmedia/express/issues"` failed with 1
verbose exit [ 1, true ]