Search code examples
octopus-deploy

How can I run npm install as part of an Octopus Deploy?


After I've deployed my nodejs website, but before I update the IIS virtual directory, I need to execute npm install from the command line.

How can I do this with Octopus Deploy's scripts feature?


Solution

  • Either add a PreDeploy script with the command you want to run in your package or via the UI