Skip to content

Instantly share code, notes, and snippets.

@lbjay
Created November 15, 2011 19:30
Show Gist options
  • Save lbjay/1368067 to your computer and use it in GitHub Desktop.
Save lbjay/1368067 to your computer and use it in GitHub Desktop.
node wikipulse.js error
[email protected]:~/projects/wikipulse> 14:29:46 5059 $ node wikipulse.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function.<anonymous> (module.js:376:11)
at Object.<anonymous> (/home/lbjay/projects/wikipulse/node_modules/irc-js/lib/irc.js:15:8)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object.<anonymous> (/home/lbjay/projects/wikipulse/wikipulse.js:3:11)
at Module._compile (module.js:432:26)
@gsf
Copy link

gsf commented Nov 15, 2011

$ pwd
/home/gsf/git/wikipulse
$ grep -r 'require.paths' .
./node_modules/jade/support/expresso/docs/index.html:

If you wish to unshift a path to require.paths before
./node_modules/jade/support/expresso/docs/api.html: + '\n -I, --include PATH Unshift the given path to require.paths'
./node_modules/jade/support/expresso/docs/index.md:If you wish to unshift a path to require.paths before
./node_modules/jade/support/expresso/bin/expresso: + '\n -I, --include PATH Unshift the given path to require.paths'
./node_modules/jade/support/expresso/bin/expresso: require.paths.unshift(arg);
./node_modules/jade/support/expresso/bin/expresso: require.paths.unshift('lib-cov');
./node_modules/jade/support/stylus/docs/import.md: @import works by iterating an array of directories, and seeing if this file lives in any of them, similar to node's require.paths. This array defaults to a single path which is derived from the filename option's dirname. So if your filename is /tmp/testing/stylus/main.styl, then import will look in /tmp/testing/stylus/.
./node_modules/jade/support/sass/spec/node.js:require.paths.unshift('spec', 'spec/lib', 'lib')
./node_modules/jade/benchmarks/haml/spec/node.js:require.paths.unshift('spec', './spec/lib', 'lib')
./node_modules/irc-js/spec/compiler.spec.js:require.paths.unshift( path.join( __dirname, '..', 'node_modules' ) )
./node_modules/irc-js/spec/compiler.spec.js:require.paths.unshift( path.join( __dirname, '..', 'lib' ) )
./node_modules/irc-js/lib/irc.js:require.paths.unshift( path.join( __dirname, '..', 'node_modules' ) )
./node_modules/irc-js/lib/irc.js:require.paths.unshift( path.join( __dirname ) )
$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment