zcbenz/node-gui — pull request #3 by danmilon (2011-10-23 01:12:01+00:00)
Title: Fix install

`npm install gui` and then `require('gui')` inside a script does not work, because the module has neither `index.js` file, neither specified `main` in `package.json`. I can't understand how you tested installation. Also node modules should not require global installation in order to run.

* removed scripts section of package.json
* added file lib/gui.js as script that will get require'ed
* added `{"main": "lib/gui"} for npm installations to work
* modified tests `require` statements in order to work as expected

So the library should be installed and used as follows:

npm install gui -- plain and simple
or
npm -g install gui -- global installation