Search code examples
npmintellij-ideanpm-installjetbrains-ide

Override default npm install from InitelliJ IDEA


Is there a way to override the default npm install script proposed by IntelliJ, I mean the one that appear as a notification when your package.json change or the one from the context menu when you right click the package.json.

I would like to add an option such as "--legacy-peer-deps".

Or do I have to run it through the terminal every time ?


Solution

  • this command can't be customized, so you have to either run the command in terminal or create the corresponding npm run configuration:

    enter image description here