Vercel Deployment Extension Error

Hello, I’m trying deploying to both vercel and azure my nextjs project.

Trying this document:

My agent computer is my local windows computer and I’m getting this issue:

##[error]Unable to locate executable file: ‘vercel’. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.

But I’m doing right I don’t know what’s wrong.

My azure-pipelines.yml file:

trigger:
- main
 
pool:
  name: Default
 
steps:
- task: vercel-deployment-task@1
  inputs:
    vercelProjectId: MyProjectId
    vercelOrgId: MyOrgId
    vercelToken:  MyVercelToken
    production: true
    vercelCWD: '/'

Can you help me guys?

Hi, Can you try setting the variable agent.preferPowerShellOnContainers = true and seeing if this resolves your issue?

Also what is your Azure Devops version? I believe it should be fixed in v2.165.2 and later Bash used for command line task on Windows in v2.165.2 · Issue #2870 · microsoft/azure-pipelines-agent · GitHub

My agent version is: v3.243.0

and I’m also added to what you said like this:

variables:
  agent.preferPowerShellOnContainers: true

trigger:
- main

pool:
  name: Default

steps:
- task: vercel-deployment-task@1
  inputs:
    vercelProjectId: MyProjectId
    vercelOrgId: MyOrgId
    vercelToken: MyVercelToken
    production: true
    vercelCWD: '/'

Still facing same issue…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.