Mystery: Aurelia install and build sometimes fails when run in the deployment target after Kudu Sync.

The problem is these two commands.

npm install -y --production
node_modules/.bin/au build --env production

Those two commands

When those commands do not work in the deployment target (i.e. in D:\home\site\wwwroot ), they still do not work if we "Redeploy" - unless we delete everything in wwwroot before doing the redeploy.

What exactly do we need to delete for the redeploy to work?

We prefer to run those two problematic commands inside the deployment target, because then we do not have to re-install all of the node_modules , which we do not store in version control.