Skip to content

Instantly share code, notes, and snippets.

@edude03
Created July 28, 2013 17:12
Show Gist options
  • Save edude03/6099313 to your computer and use it in GitHub Desktop.
Save edude03/6099313 to your computer and use it in GitHub Desktop.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/HEAD/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'node-inspector' ]
2 info using npm@1.3.4
3 info using node@v0.11.5-pre
4 verbose cache add [ 'node-inspector', null ]
5 verbose cache add name=undefined spec="node-inspector" args=["node-inspector",null]
6 verbose parsed url { protocol: null,
6 verbose parsed url slashes: null,
6 verbose parsed url auth: null,
6 verbose parsed url host: null,
6 verbose parsed url port: null,
6 verbose parsed url hostname: null,
6 verbose parsed url hash: null,
6 verbose parsed url search: null,
6 verbose parsed url query: null,
6 verbose parsed url pathname: 'node-inspector',
6 verbose parsed url path: 'node-inspector',
6 verbose parsed url href: 'node-inspector' }
7 silly lockFile 4198ef9e-node-inspector node-inspector
8 verbose lock node-inspector /Users/edude03/.npm/4198ef9e-node-inspector.lock
9 silly lockFile 4198ef9e-node-inspector node-inspector
10 silly lockFile 4198ef9e-node-inspector node-inspector
11 verbose addNamed [ 'node-inspector', '' ]
12 verbose addNamed [ null, '*' ]
13 silly lockFile e68b88da-node-inspector node-inspector@
14 verbose lock node-inspector@ /Users/edude03/.npm/e68b88da-node-inspector.lock
15 silly addNameRange { name: 'node-inspector', range: '*', hasData: false }
16 verbose url raw node-inspector
17 verbose url resolving [ 'https://registry.npmjs.org/', './node-inspector' ]
18 verbose url resolved https://registry.npmjs.org/node-inspector
19 info trying registry request attempt 1 at 13:09:14
20 verbose etag "E3FB8GFB73TXN1NGF5DNSL0PV"
21 http GET https://registry.npmjs.org/node-inspector
22 http 304 https://registry.npmjs.org/node-inspector
23 silly registry.get cb [ 304,
23 silly registry.get { server: 'CouchDB/1.3.0 (Erlang OTP/R15B03)',
23 silly registry.get etag: '"E3FB8GFB73TXN1NGF5DNSL0PV"',
23 silly registry.get date: 'Sun, 28 Jul 2013 17:09:14 GMT',
23 silly registry.get 'content-length': '0' } ]
24 verbose etag node-inspector from cache
25 silly addNameRange number 2 { name: 'node-inspector', range: '*', hasData: true }
26 silly addNameRange versions [ 'node-inspector',
26 silly addNameRange [ '0.0.1',
26 silly addNameRange '0.0.2',
26 silly addNameRange '0.0.3',
26 silly addNameRange '0.0.4',
26 silly addNameRange '0.1.0',
26 silly addNameRange '0.1.1',
26 silly addNameRange '0.1.2',
26 silly addNameRange '0.1.3',
26 silly addNameRange '0.1.4',
26 silly addNameRange '0.1.5',
26 silly addNameRange '0.1.6',
26 silly addNameRange '0.1.7',
26 silly addNameRange '0.1.8',
26 silly addNameRange '0.1.9',
26 silly addNameRange '0.1.10',
26 silly addNameRange '0.3.0',
26 silly addNameRange '0.3.1',
26 silly addNameRange '0.3.2',
26 silly addNameRange '0.2.0-beta1',
26 silly addNameRange '0.2.0-beta2',
26 silly addNameRange '0.2.0-beta3',
26 silly addNameRange '0.2.0-beta4',
26 silly addNameRange '0.3.0-preview1' ] ]
27 verbose addNamed [ 'node-inspector', '0.3.2' ]
28 verbose addNamed [ '0.3.2', '0.3.2' ]
29 silly lockFile 87d8cdac-node-inspector-0-3-2 node-inspector@0.3.2
30 verbose lock node-inspector@0.3.2 /Users/edude03/.npm/87d8cdac-node-inspector-0-3-2.lock
31 silly lockFile 87d8cdac-node-inspector-0-3-2 node-inspector@0.3.2
32 silly lockFile 87d8cdac-node-inspector-0-3-2 node-inspector@0.3.2
33 silly lockFile e68b88da-node-inspector node-inspector@
34 silly lockFile e68b88da-node-inspector node-inspector@
35 silly resolved [ { name: 'node-inspector',
35 silly resolved version: '0.3.2',
35 silly resolved description: 'Web Inspector based nodeJS debugger',
35 silly resolved homepage: 'http://github.com/node-inspector/node-inspector',
35 silly resolved author: { name: 'Danny Coates', email: 'dannycoates@gmail.com' },
35 silly resolved keywords: [ 'debug', 'debugger', 'inspector', 'profiler' ],
35 silly resolved repository:
35 silly resolved { type: 'git',
35 silly resolved url: 'http://github.com/node-inspector/node-inspector.git' },
35 silly resolved engines: { node: '>=0.8.0' },
35 silly resolved bin: { 'node-inspector': './bin/inspector.js' },
35 silly resolved dependencies:
35 silly resolved { 'socket.io': '~0.9.14',
35 silly resolved express: '~3.2',
35 silly resolved async: '~0.2.8',
35 silly resolved glob: '~3.2.1' },
35 silly resolved devDependencies: { mocha: 'latest', chai: 'latest' },
35 silly resolved preferGlobal: true,
35 silly resolved scripts: { test: 'mocha' },
35 silly resolved contributors:
35 silly resolved [ [Object],
35 silly resolved [Object],
35 silly resolved [Object],
35 silly resolved [Object],
35 silly resolved [Object],
35 silly resolved [Object],
35 silly resolved [Object],
35 silly resolved [Object],
35 silly resolved [Object],
35 silly resolved [Object],
35 silly resolved [Object] ],
35 silly resolved readme: '# Node Inspector\n\n[![Build Status](https://travis-ci.org/node-inspector/node-inspector.png?branch=master)](https://travis-ci.org/node-inspector/node-inspector)\n[![NPM version](https://badge.fury.io/js/node-inspector.png)](http://badge.fury.io/js/node-inspector)\n\n\n## Overview\nNode Inspector is a debugger interface for node.js using the\nBlink Developer Tools (former WebKit Web Inspector).\n\n## Features\n\nThe Blink DevTools debugger is a great javascript debugger interface;\nit works just as well for node. Node Inspector supports almost all\nof the debugging features of DevTools.\n\n* Navigate in your source files\n* Set breakpoints (and specify trigger conditions)\n* Break on exceptions\n* Step over, step in, step out, resume (continue)\n* Continue to location\n* Disable/enable all breakpoints\n* Inspect scopes, variables, object properties\n* Hover your mouse over an expression in your source to display its value in\n a tooltip\n* Edit variables and object properties\n* (etc.)\n\n### Cool stuff\n* Node Inspector uses WebSockets, so no polling for breaks.\n* Remote debugging\n* [Live edit of running code](http://github.com/dannycoates/node-inspector/wiki/LiveEdit),\n optionally persisting changes back to the file-system.\n* Set breakpoints in files that are not loaded into V8 yet - useful for\n debugging module loading/initialization.\n* Javascript from top to bottom :)\n\n## Known Issues\n\nThis is beta-quality code, so use at your own risk.\n\n* Be careful about viewing the contents of Buffer objects,\n each byte is displayed as an individual array element;\n for most Buffers this will take too long to render.\n* While not stopped at a breakpoint the console doesn\'t always\n behave as you might expect.\n* Profiler is not implemented yet. Have a look at\n [node-webkit-agent](https://github.com/c4milo/node-webkit-agent)\n in the meantime.\n* Break on uncaught exceptions does not work because of missing\n [support in node](https://github.com/joyent/node/pull/5713).\n* Debugging multiple processes (e.g. cluster) is cumbersome.\n\n# Getting Started\n\n## Requirements\n\n* [node.js](http://github.com/ry/node)\n - version 0.8 or later\n* [npm](http://github.com/isaacs/npm)\n* A Blink-based browser (i.e. Google Chrome)\n\n## Install\n\n* With [npm](http://github.com/isaacs/npm)\n\n $ npm install -g node-inspector\n\n## Enable debug mode\n\nTo use node-inspector, enable debugging on the node you wish to debug.\nYou can either start node with a debug flag like:\n\n $ node --debug your/node/program.js\n\nor, to pause your script on the first line:\n\n $ node --debug-brk your/short/node/script.js\n\nOr you can enable debugging on a node that is already running by sending\nit a signal:\n\n1. Get the PID of the node process using your favorite method.\n`pgrep` or `ps -ef` are good\n\n\t\t$ pgrep -l node\n\t\t2345 node your/node/server.js\n\n2. Send it the USR1 signal\n\n\t\t$ kill -s USR1 2345\n\nGreat! Now you are ready to attach node-inspector\n\n## Debugging\n\n1. start the inspector. I usually put it in the background\n\n\t\t$ node-inspector &\n\n2. open http://127.0.0.1:8080/debug?port=5858 in Chrome\n\n3. you should now see the javascript source from node. If you don\'t, click the scripts tab.\n\n4. select a script and set some breakpoints (far left line numbers)\n\n5. then watch the [screencasts](http://www.youtube.com/view_play_list?p=A5216AC29A41EFA8)\n\nFor more information on getting started see the [wiki](http://github.com/dannycoates/node-inspector/wiki/Getting-Started---from-scratch)\n\nnode-inspector works almost exactly like the web inspector in\nChrome. Here\'s a good [overview](http://code.google.com/chrome/devtools/docs/scripts.html) of the UI\n\n## Inspector options\n\n --web-port=[port] port to host the inspector (default 8080)\n --web-host=[host] host to listen on (default 0.0.0.0)\n\n# FAQ / WTF\n\n1. My script runs too fast to attach the debugger.\n\n > use `--debug-brk` to pause the script on the first line\n\n2. I got the ui in a weird state.\n\n > when in doubt, refresh\n\n3. Can I debug remotely?\n\n > Yes. node-inspector must be running on the same machine,\n > but your browser can be anywhere.\n > Just make sure port 8080 is accessible\n\n# Thanks\n\nThis project respectfully uses code from and thanks the authors of:\n\n* [Blink](http://www.chromium.org/blink)\n* [node](http://github.com/joyent/node)\n* [socket.io](http://github.com/LearnBoost/socket.io)\n* [express](http://expressjs.com/)\n* [async](https://github.com/caolan/async)\n* [glob](https://github.com/isaacs/node-glob)\n',
35 silly resolved readmeFilename: 'readme.md',
35 silly resolved bugs: { url: 'https://github.com/node-inspector/node-inspector/issues' },
35 silly resolved _id: 'node-inspector@0.3.2',
35 silly resolved _from: 'node-inspector@' } ]
36 info install node-inspector@0.3.2 into /usr/local/share/npm/lib
37 info installOne node-inspector@0.3.2
38 info /usr/local/share/npm/lib/node_modules/node-inspector unbuild
39 verbose tar unpack /Users/edude03/.npm/node-inspector/0.3.2/package.tgz
40 silly lockFile c77dc302--lib-node-modules-node-inspector tar:///usr/local/share/npm/lib/node_modules/node-inspector
41 verbose lock tar:///usr/local/share/npm/lib/node_modules/node-inspector /Users/edude03/.npm/c77dc302--lib-node-modules-node-inspector.lock
42 silly lockFile 3df042b6-node-inspector-0-3-2-package-tgz tar:///Users/edude03/.npm/node-inspector/0.3.2/package.tgz
43 verbose lock tar:///Users/edude03/.npm/node-inspector/0.3.2/package.tgz /Users/edude03/.npm/3df042b6-node-inspector-0-3-2-package-tgz.lock
44 silly gunzTarPerm modes [ '755', '644' ]
45 silly gunzTarPerm extractEntry package.json
46 silly gunzTarPerm extractEntry LICENSE
47 silly gunzTarPerm extractEntry index.js
48 error TypeError: uid must be an int
48 error at Object.fs.chown (fs.js:833:11)
48 error at Object.chown (/usr/local/Cellar/node/HEAD/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:131:17)
48 error at endChown (/usr/local/Cellar/node/HEAD/lib/node_modules/npm/node_modules/fstream/lib/writer.js:212:12)
48 error at setProps (/usr/local/Cellar/node/HEAD/lib/node_modules/npm/node_modules/fstream/lib/writer.js:295:5)
48 error at /usr/local/Cellar/node/HEAD/lib/node_modules/npm/node_modules/fstream/lib/writer.js:286:7
48 error at Object.oncomplete (fs.js:96:15)
49 error If you need help, you may report this log at:
49 error <http://github.com/isaacs/npm/issues>
49 error or email it to:
49 error <npm-@googlegroups.com>
50 error System Darwin 12.4.0
51 error command "/usr/local/Cellar/node/HEAD/bin/node" "/usr/local/bin/npm" "install" "-g" "node-inspector"
52 error cwd /usr/local/Cellar/node/HEAD/lib/node_modules
53 error node -v v0.11.5-pre
54 error npm -v 1.3.4
55 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment