如何在调试前将 Webstorm 10 配置为 运行 npm install --force?

How do I configure Webstorm 10 to run npm install --force before debugging?

我有一个共享子模块,需要我 运行 "npm install --force" 才能 运行 webstorm 和调试应用程序。我真的很想编辑我的调试配置,以便在启动前执行操作,该操作将为我 运行 npm 命令。这能做到吗?

在配置 window(您设置调试配置的地方),您可以找到 'Before launch' 部分

https://www.jetbrains.com/phpstorm/help/run-debug-configuration-javascript-debug.html 上查看更多信息(按 'Before launch' 在页面上搜索)

Before launch Specify which tasks must be performed before applying the run/debug configuration. The specified tasks are performed in the order they appear in the list.