Why the hell does npm support a postinstall script? There really shouldn't be a need to run arbitrary code provided by the package for something like this.
It's common to need to setup tool chains for code that gets compiled (i.e. a node module that adds language bindings to a C library)