vercel-action
vercel-action copied to clipboard
Error in GitHub action `Error: spawn /opt/hostedtoolcache/node/16.17.0/x64/bin/npx ENOENT`
Error: There was an error when attempting to execute the process '/opt/hostedtoolcache/node/16.17.0/x64/bin/npx'. This may indicate the process failed to start. Error: spawn /opt/hostedtoolcache/node/16.17.0/x64/bin/npx ENOENT
The action then fails
Code:
name: deploy website
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- run: yarn build
- uses: amondnet/vercel-action@v20 #deploy
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
vercel-args: '--prod' #Optional
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: ./build