Colingo/date-now — pull request #1 by shybovycha (2013-01-29 13:51:02+00:00)
Title: Removed post-install command causing crash

This is what i saw when tried to install `browserify`:

```
shybovycha@a:~/projects/forks/date-now$ npm install -g browserify
# bla-blah-blah
# GET requests showing HTTP_OK statuses

> date-now@0.1.1 postinstall /usr/local/lib/node_modules/browserify/node_modules/console-browserify/node_modules/date-now
> npm dedup

npm http 304 https://registry.npmjs.org/wordwrap
npm ERR! TypeError: Object.keys called on non-object
npm ERR! at Function.keys (native)
npm ERR! at /usr/local/lib/node_modules/npm/lib/dedupe.js:39:24
npm ERR! at /usr/local/lib/node_modules/npm/lib/dedupe.js:269:20
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:80:40
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:126:49
npm ERR! at fs.js:117:20
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:53:5
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:62:5
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!

npm ERR! System Linux 3.2.0-31-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "dedup"
npm ERR! cwd /usr/local/lib/node_modules/browserify/node_modules/console-browserify/node_modules/date-now
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.2
npm ERR! type called_on_non_object
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/lib/node_modules/browserify/node_modules/console-browserify/node_modules/date-now/npm-debug.log
npm ERR! not ok code 0
npm ERR! date-now@0.1.1 postinstall: `npm dedup`
npm ERR! `sh "-c" "npm dedup"` failed with 1
npm ERR!
npm ERR! Failed at the date-now@0.1.1 postinstall script.
npm ERR! This is most likely a problem with the date-now package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm dedup
npm ERR! You can get their info via:
npm ERR! npm owner ls date-now
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-31-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "browserify"
npm ERR! cwd /home/shybovycha/projects/forks/date-now
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.2
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.6.4.js'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!

npm ERR! System Linux 3.2.0-31-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "browserify"
npm ERR! cwd /home/shybovycha/projects/forks/date-now
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.2
npm ERR! path /usr/local/lib/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.6.4.js
npm ERR! fstream_path /usr/local/lib/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.6.4.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!

npm ERR! System Linux 3.2.0-31-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "browserify"
npm ERR! cwd /home/shybovycha/projects/forks/date-now
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.2
npm ERR! path /usr/local/lib/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js
npm ERR! fstream_path /usr/local/lib/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/shybovycha/projects/forks/date-now/npm-debug.log
npm ERR! not ok code 0
```

When i tried to run `npm install -g date-now` i failed. With the same errors:

```
shybovycha@a:~/projects/nodejs/toolbox$ npm install -g date-now
npm http GET https://registry.npmjs.org/date-now
npm http 304 https://registry.npmjs.org/date-now

> date-now@0.1.1 postinstall /usr/local/lib/node_modules/date-now
> npm dedup

npm ERR! TypeError: Object.keys called on non-object
npm ERR! at Function.keys (native)
npm ERR! at /usr/local/lib/node_modules/npm/lib/dedupe.js:39:24
npm ERR! at /usr/local/lib/node_modules/npm/lib/dedupe.js:269:20
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:80:40
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:126:49
npm ERR! at fs.js:117:20
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:53:5
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:62:5
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!

npm ERR! System Linux 3.2.0-31-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "dedup"
npm ERR! cwd /usr/local/lib/node_modules/date-now
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.2
npm ERR! type called_on_non_object
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/lib/node_modules/date-now/npm-debug.log
npm ERR! not ok code 0
npm ERR! date-now@0.1.1 postinstall: `npm dedup`
npm ERR! `sh "-c" "npm dedup"` failed with 1
npm ERR!
npm ERR! Failed at the date-now@0.1.1 postinstall script.
npm ERR! This is most likely a problem with the date-now package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm dedup
npm ERR! You can get their info via:
npm ERR! npm owner ls date-now
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-31-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "date-now"
npm ERR! cwd /home/shybovycha/projects/nodejs/toolbox
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.2
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/shybovycha/projects/nodejs/toolbox/npm-debug.log
npm ERR! not ok code 0
```

So, i decided to hard-fix this :smile: