vercel-action
vercel-action copied to clipboard
Deployment error in node version 16
https://github.com/amondnet/vercel-action/blob/8433ae13f35aa62d68184a8fc369ce6b0143b0a3/index.js#L191
I have not changed any vercel configuration for a while but today i have started to get the following error on my node16 deployments. Here are the error message and the according logs
npm WARN exec The following package was not found and will be installed: [email protected]
WARN exec The following package was not found and will be installed: [email protected]
Vercel CLI 28.10.3
Vercel CLI 28.10.3
Retrieving project…
Retrieving project…
Deploying nav-tech/navlungo-checkout-ui
Deploying nav-tech/navlungo-checkout-ui
Uploading [--------------------] (0.0B/1.2MB)
Uploading [--------------------] (0.0B/1.2MB)
Uploading [=====---------------] (320.0KB/1.2MB)
Uploading [=====---------------] (320.0KB/1.2MB)
Uploading [==========----------] (624.0KB/1.2MB)
Uploading [==========----------] (624.0KB/1.2MB)
Uploading [===============-----] (928.0KB/1.2MB)
Uploading [===============-----] (928.0KB/1.2MB)
Uploading [====================] (1.2MB/1.2MB)
Uploading [====================] (1.2MB/1.2MB)
Inspect: https://vercel.com/nav-tech/navlungo-checkout-ui/*** [2s]
Queued
Inspect: https://vercel.com/nav-tech/navlungo-checkout-ui/*** [2s]
Queued
https://*****.vercel.app/
https://*****.vercel.appbuilding/
Building
Error: Unexpected error. Please try again later. ()
Error: Unexpected error. Please try again later. ()
Error: The process '/opt/hostedtoolcache/node/16.20.2/x64/bin/npx' failed with exit code 1
##[debug]Node Action run completed with exit code 1
##[debug]VERCEL_ORG_ID='***'
##[debug]VERCEL_PROJECT_ID='***'
##[debug]Finishing: Run amondnet/[email protected]
And here are the error logs of the failed deployment in Vercel logs
Running build in Washington, D.C., USA (East) – iad1
--
14:24:57.275 | Retrieving list of deployment files...
14:24:57.777 | Extracting deployment files...
14:24:57.899 | Previous build caches not available
14:24:58.010 | Extracted 127 deployment files...
14:24:58.185 | Using prebuilt build artifacts...
14:24:58.227 | [Error: ENOENT: no such file or directory, lstat '/vercel/path0/node_modules/next/dist/server/next-server.js'] {
14:24:58.227 | errno: -2,
14:24:58.227 | code: 'ENOENT',
14:24:58.227 | syscall: 'lstat',
14:24:58.227 | path: '/vercel/path0/node_modules/next/dist/server/next-server.js'
14:24:58.227 | }
We had the same issue @mericozkayagan. If you are building like npx vercel@latest build ...
then attempt to deploy with less than latest it will fail with that error. We just changed to make everything use npx [email protected]
and the problem went away.
Hope this helps
We had the same issue @mericozkayagan. If you are building like
npx vercel@latest build ...
then attempt to deploy with less than latest it will fail with that error. We just changed to make everything usenpx [email protected]
and the problem went away.Hope this helps
how can i set vercel version in workflow? i try to use the same as in example. of this repo
@mitraecp
Name Required Default Description vercel-version vercel-cli package version if absent we will use one declared in package.json -- -- -- --