I am attempting to create a build for a Zapier app. I have several npm steps to install and run various checks within Node. I then do an npm global install for the zapier-platform-cli package and use a command script to run zapier validate. Locally I have this package installed globally and can run this script without issue. However the build will install the package and then when it hits the command task to run zapier validate it states zapier is not a batch file or executable and it cannot execute.
I have tried several different methods to get this to run and have been unsuccessful. The build is running on a private build server and not Visual Studio shared. Has anyone been able to get this command to run properly within an Azure pipeline/build?
Build pipeline:


You can try to move the "
npm install -g zapier-platform-cli" task to the top as the first step of the job. Then check if the issue can be resolved.I have tried this and it can work well as expected.
[UPDATE]
You also can try to manually execute the "
npm install -g zapier-platform-cli" command on your local machine to install the zapier-platform-cli, then manually execute thezapiercommand for your project on the local machine to check whether it can work.If it works locally, try to set up a Self-hosted Windows agent on the local machine to run the pipeline job.
If it also does not work locally, the problem may be laying on the zapier-platform-cli itself.