Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failed: ERR! could not determine executable to run for npx ampx pipeline-deploy #2424

Open
vidyutjavelin opened this issue Jan 15, 2025 · 1 comment
Labels
console-builds Issues related to Amplify console builds pending-community-response Issue is pending a response from the author or community question Question or confusion about some aspect of the product

Comments

@vidyutjavelin
Copy link

Hi, I seem to be having the same issue, the deployments randomly started failing after making a small tweak to a file, (despite rolling back that commit, the issue persists). I have attached the logs from Job 16, the last successful deployment and 17, the first one that failed.

App ID: d2r7eujzxd5ds2

BUILD_16.txt

BUILD_17.txt

Here is my amplify.yml

version: 1
backend:
  phases:
    build:
      commands:
        # - npm ci --cache .npm --prefer-offline
        - npm ci
        - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID --debug
frontend:
  phases:
   build:
      commands:
        - npm run build
  artifacts:
    baseDirectory: .next
    files:
      - '**/*'
  cache:
    paths:
      - .next/cache/**/*
      - .npm/**/*
      - node_modules/**/*

This issue is happening on both the /dev and /main branch.

Originally posted by @vidyutjavelin in #1816

@vidyutjavelin vidyutjavelin changed the title Build Failed: ERR! could not determine executable to run for npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID Build Failed: ERR! could not determine executable to run for npx ampx pipeline-deploy Jan 15, 2025
@Jay2113 Jay2113 added console-builds Issues related to Amplify console builds question Question or confusion about some aspect of the product labels Jan 15, 2025
@Jay2113
Copy link

Jay2113 commented Jan 15, 2025

Hi @vidyutjavelin 👋 , thanks for reaching out. From the build logs, I observed that the [email protected] package requires Node.js version ^18.19.0 or >=20.5.0, while the build container defaults to v18.18.2. I recommend using live package overrides to install a specific Node.js version. Additionally, the error ERR! could not determine executable to run for npx ampx pipeline-deploy can occur if these packages @aws-amplify/backend and @aws-amplify/backend-cli are not installed in your Gen 2 project.

@Jay2113 Jay2113 added the pending-community-response Issue is pending a response from the author or community label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console-builds Issues related to Amplify console builds pending-community-response Issue is pending a response from the author or community question Question or confusion about some aspect of the product
Projects
None yet
Development

No branches or pull requests

2 participants