Tests if the package in the current working directory can be installed after it is published, that way you won't have to publish another version with a fix.
Table of Contents generated with DocToc
$ npm install --save-dev pkg-can-install
Then edit your package.json to have:
pkg-can-install will be run right before a publish.
How it works
- We get a temporary directory
- We recursively copy the current package minus
node_modulesto that directory
- We run
npm install --productionand verify that it works