Skip to content

Instantly share code, notes, and snippets.

@indexzero
Created May 21, 2011 19:53
Show Gist options
  • Save indexzero/984840 to your computer and use it in GitHub Desktop.
Save indexzero/984840 to your computer and use it in GitHub Desktop.
Trying to update require-analyzer to npm 1.0
$ require-analyzer
info: require-analyzer starting in /Users/Charlie/Experimental/foobar
warn: No dependencies found
info: Analyzing dependencies...
info: Done analyzing raw dependencies
{
target: '/Users/Charlie/Experimental/foobar/app.js',
reduce: true,
timeout: 5000,
root: '/Users/Charlie/Experimental/foobar',
npm: { prefix: '/Users/Charlie/Experimental/foobar', exit: false }
}
{}
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object.keys called on non-object
at Function.keys (native)
at /Users/Charlie/Nodejitsu/require-analyzer/lib/require-analyzer.js:164:14
at Object.write (/Users/Charlie/Nodejitsu/require-analyzer/lib/require-analyzer.js:144:5)
at /Users/Charlie/Nodejitsu/require-analyzer/node_modules/npm/lib/ls.js:30:12
at /Users/Charlie/Nodejitsu/require-analyzer/node_modules/npm/lib/utils/read-installed.js:101:5
at /Users/Charlie/Nodejitsu/require-analyzer/node_modules/npm/lib/utils/read-installed.js:186:14
at cb (/Users/Charlie/Nodejitsu/require-analyzer/node_modules/npm/lib/utils/async-map.js:51:11)
at /Users/Charlie/Nodejitsu/require-analyzer/node_modules/npm/lib/utils/read-installed.js:186:14
at cb (/Users/Charlie/Nodejitsu/require-analyzer/node_modules/npm/lib/utils/async-map.js:51:11)
at /Users/Charlie/Nodejitsu/require-analyzer/node_modules/npm/lib/utils/read-installed.js:186:14
$ npm ls
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
[email protected] /Users/Charlie/Experimental/foobar
└─┬ [email protected] extraneous
├── [email protected]
├── [email protected]
└── [email protected]
npm info ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment