3 ms·
What about pre-install scripts? The problem I've encountered with them is that npm still hasn't installed the dependencies in your package.json, so you can't ha
by malandrew 13y ago
What about pre-install scripts? The problem I've encountered with them is that npm still hasn't installed the dependencies in your package.json, so you can't have any dependencies in your pre-install scripts (at least on first install. on subsequent installs they will work if the modules your script depends on has already been installed).
Also izs' `osenv` module will help you get the home directory cross platform.
var osenv = require("osenv");
var homePath = osenv.home();
https://github.com/isaacs/osenv https://github.com/isaacs/osenv