Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Internal references depend on external setup #3

OrangeDog opened this Issue Oct 5, 2011 · 2 comments


None yet
2 participants

For example, bunzipstream.js has require('gzbz2') instead of the portable require('./build/default/gzbz2').


Woodya commented Oct 28, 2011

not sure what you mean here. you have to install the module for those files to work.
i may be missing something or misunderstanding 'require', but the require statement you've suggested doesn't work once you have installed the module..?

@Woodya Woodya closed this Oct 28, 2011

Some people don't use npm, or install using NODE_PATH or node_modules.

All other modules I've used would also allow you to require them thus: var gzbz2 = require('../lib/gzbz2'). That is, their package layout provides a clean and stand-alone abstraction..

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