npm config set ignore-scripts true
You can see how NPM has been configured by running
npm config list