vercel-action icon indicating copy to clipboard operation
vercel-action copied to clipboard

Error in GitHub action `Error: spawn /opt/hostedtoolcache/node/16.17.0/x64/bin/npx ENOENT`

Open iqfareez opened this issue 1 year ago • 3 comments

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

iqfareez avatar Sep 13 '22 15:09 iqfareez