Using --ignore-scripts for one dependency in NPM

Viewed 2110

Following this question, NPM dependencies can be installed using:

$ npm install --ignore-scripts

Is there a way to mark that a dependency should be installed without running scripts in package.json?

This is because, when I run npm install --ignore-scripts, the dependency is added to package.json. As a result, other users will install the package while running scripts, however I want this certain package to never run scripts.

1 Answers

I could be wrong but I believe its: npm install -ignore-script package-name@version

Related