It’s not possible to disable only postinstall script. However, you can disable all scripts using:
$ npm install --ignore-scripts
As delbertooo mentioned in the comments, this also disables the scripts of the dependencies.
It’s not possible to disable only postinstall script. However, you can disable all scripts using:
$ npm install --ignore-scripts
As delbertooo mentioned in the comments, this also disables the scripts of the dependencies.