Now I can deploy from VSTS to azure, but I can\'t run npm after deploy is successful.
Now it is work like -> run npm install for branch files => zip => copy to azure
You can run commands like npm install
via the Kudu REST API.
Here's a scripted example written in PowerShell.
Add a PowerShell script task after the Azure App Service Deploy task to invoke npm install
(or any other command that Kudu supports). And disable the npm install task in your build pipeline.