does the post install hook get run when npm is install is invoked programmatically?