It is possible to disable install hooks at install time by running npm install with --ignore-scripts.
You can also make this the default, with npm config set ignore-scripts true (and then --ignore-scripts false at install time if you wish to run them).