netlify / actions

MIT License
375 stars 59 forks source link

The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12" #60

Open daschuer opened 2 years ago

daschuer commented 2 years ago

Our mixxx manual CI fails now because of

https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error responselike@3.0.0: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12"
  error Found incompatible module.
  info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
  The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1

Does anyone know how to fix that?

This is the failing run: https://github.com/mixxxdj/manual/actions/runs/2987908818

hrishikesh-k commented 2 years ago

This might help: https://answers.netlify.com/t/74772/4?u=hrishikesh

daschuer commented 2 years ago

Thank you, I will give it a try. In the meantime I have used careflow/netlify-actions/cli@master which solves the issue as well.

DarioRega commented 2 years ago

Got the same issue, before it was working fine, right now every build fails

daschuer commented 2 years ago

I can also confirm that https://github.com/netlify/actions/issues/60#issuecomment-1236384659 Is working well.

soniCaH commented 2 years ago

https://github.com/netlify/actions/issues/60#issuecomment-1236384659 does not work for me, getting error:

    npx netlify deploy --dir=public
    NETLIFY_AUTH_TOKEN: ***
    NETLIFY_SITE_ID: ***
Error: Process completed with exit code 1.
npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-09-05T09_11_16_414Z-debug-0.log
asgerjensen commented 2 years ago

So, the Dockerfile just pulls "newest netlify" package, and one of its dependencies must have updated to depend on responselike 3.0.0.

It has nothing to do with the node version of your project.

Would probably be better to have some version pinning in place for the yarn command.

dora-michal-adyen commented 2 years ago

any updates on this? is not working for me either

Thank you @daschuer.

I would like to know if Netlify team is going to fix the original issue.

asgerjensen commented 2 years ago

it is @.***

Sent from my iPhone

On 5 Sep 2022, at 20.49, Dora @.***> wrote:

 any updates on this? is not working for me either i tried the careflowError: Unable to resolve action @.***, repository not found

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

asgerjensen commented 2 years ago

Huh, weird. Replying by email stripped the values....

anyways, this works for me:

    - name: Publish 
      id: publish
      uses: careflow/netlify-actions/cli@master
      with:
        args: deploy --dir=${{ inputs.path }} --json
      env:
        NETLIFY_SITE_ID: ${{ inputs.netlify-site-id }}
        NETLIFY_AUTH_TOKEN: ${{ inputs.netlify-token }}
KirioXX commented 2 years ago

We have the same problem and moving to careflow/netlify-actions/cli@master does not change it. Has someone a solution for the problem? In case it helps here is the full output of the Build netlify/actions/cli@master task:

/usr/bin/docker build -t 786a9b:95baff00ab804ec6beb62c8d24a8b7fe -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli"
  Sending build context to Docker daemon   5.12kB

  Step 1/12 : FROM node:12-alpine
   ---> bb6d28039b8c
  Step 2/12 : LABEL version="1.0.1"
   ---> Running in b018b729a691
  Removing intermediate container b018b729a691
   ---> 6dce3019eb20
  Step 3/12 : LABEL repository="http://github.com/netlify/actions"
   ---> Running in 9018a26fa5d5
  Removing intermediate container 9018a26fa5d5
   ---> d912307e98b4
  Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
   ---> Running in 30007db124fe
  Removing intermediate container 30007db124fe
   ---> 856b93570a8f
  Step 5/12 : LABEL maintainer="Netlify"
   ---> Running in 091541039dab
  Removing intermediate container 091541039dab
   ---> 0a538a5b6609
  Step 6/12 : LABEL "com.github.actions.name"="Netlify"
   ---> Running in 0a49c4032aa4
  Removing intermediate container 0a49c4032aa4
   ---> 4c229bfc1b71
  Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
   ---> Running in 035fcf72e75f
  Removing intermediate container 035fcf72e75f
   ---> 8c82fdd39fd9
  Step 8/12 : LABEL "com.github.actions.icon"="cloud"
   ---> Running in bba896a18b3b
  Removing intermediate container bba896a18b3b
   ---> 444c124f8beb
  Step 9/12 : LABEL "com.github.actions.color"="blue"
   ---> Running in 27be1fe832be
  Removing intermediate container 27be1fe832be
   ---> 76c7f8fb6fc0
  Step 10/12 : RUN yarn global add netlify-cli
   ---> Running in 6345b5bdb062
  yarn global v1.22.18
  [1/4] Resolving packages...
  warning netlify-cli > @netlify/build > statsd-client@0.4.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
  warning netlify-cli > @netlify/build > got > @types/cacheable-request > @types/responselike@3.0.0: This is a stub types definition. responselike provides its own type definitions, so you do not need this installed.
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error responselike@3.0.0: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12"
  info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
  error Found incompatible module.
  The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1

  Warning: Docker build failed with exit code 1, back off 7.865 seconds before retry.
  /usr/bin/docker build -t 786a9b:95baff00ab804ec6beb62c8d24a8b7fe -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli"
  Sending build context to Docker daemon   5.12kB

  Step 1/12 : FROM node:12-alpine
   ---> bb6d28039b8c
  Step 2/12 : LABEL version="1.0.1"
   ---> Using cache
   ---> 6dce3019eb20
  Step 3/12 : LABEL repository="http://github.com/netlify/actions"
   ---> Using cache
   ---> d912307e98b4
  Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
   ---> Using cache
   ---> 856b93570a8f
  Step 5/12 : LABEL maintainer="Netlify"
   ---> Using cache
   ---> 0a538a5b6609
  Step 6/12 : LABEL "com.github.actions.name"="Netlify"
   ---> Using cache
   ---> 4c229bfc1b71
  Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
   ---> Using cache
   ---> 8c82fdd39fd9
  Step 8/12 : LABEL "com.github.actions.icon"="cloud"
   ---> Using cache
   ---> 444c124f8beb
  Step 9/12 : LABEL "com.github.actions.color"="blue"
   ---> Using cache
   ---> 76c7f8fb6fc0
  Step 10/12 : RUN yarn global add netlify-cli
   ---> Running in 830d8892961f
  yarn global v1.22.18
  [1/4] Resolving packages...
  warning netlify-cli > @netlify/build > statsd-client@0.4.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
  warning netlify-cli > @netlify/build > got > @types/cacheable-request > @types/responselike@3.0.0: This is a stub types definition. responselike provides its own type definitions, so you do not need this installed.
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error responselike@3.0.0: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12"
  error Found incompatible module.
  info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
  The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1
  Warning: Docker build failed with exit code 1, back off 6.56 seconds before retry.
  /usr/bin/docker build -t 786a9b:95baff00ab804ec6beb62c8d24a8b7fe -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli"
  Sending build context to Docker daemon   5.12kB

  Step 1/12 : FROM node:12-alpine
   ---> bb6d28039b8c
  Step 2/12 : LABEL version="1.0.1"
   ---> Using cache
   ---> 6dce3019eb20
  Step 3/12 : LABEL repository="http://github.com/netlify/actions"
   ---> Using cache
   ---> d912307e98b4
  Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
   ---> Using cache
   ---> 856b93570a8f
  Step 5/12 : LABEL maintainer="Netlify"
   ---> Using cache
   ---> 0a538a5b6609
  Step 6/12 : LABEL "com.github.actions.name"="Netlify"
   ---> Using cache
   ---> 4c229bfc1b71
  Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
   ---> Using cache
   ---> 8c82fdd39fd9
  Step 8/12 : LABEL "com.github.actions.icon"="cloud"
   ---> Using cache
   ---> 444c124f8beb
  Step 9/12 : LABEL "com.github.actions.color"="blue"
   ---> Using cache
   ---> 76c7f8fb6fc0
  Step 10/12 : RUN yarn global add netlify-cli
   ---> Running in bd26d79e5c4c
  yarn global v1.22.18
  [1/4] Resolving packages...
  warning netlify-cli > @netlify/build > statsd-client@0.4.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
  warning netlify-cli > @netlify/build > got > @types/cacheable-request > @types/responselike@3.0.0: This is a stub types definition. responselike provides its own type definitions, so you do not need this installed.
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error responselike@3.0.0: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12"
  error Found incompatible module.
  info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
  The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1
Error: Docker build failed with exit code 1
asgerjensen commented 2 years ago

can you show the output using the alternative?

Sent from my iPhone

On 7 Sep 2022, at 11.42, Ben Wunderlich @.***> wrote:

 We have the same problem and moving to @. does not change it. Has someone a solution for the problem? In case it helps here is the full output of the Build @. task:

/usr/bin/docker build -t 786a9b:95baff00ab804ec6beb62c8d24a8b7fe -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli" Sending build context to Docker daemon 5.12kB

Step 1/12 : FROM node:12-alpine ---> bb6d28039b8c Step 2/12 : LABEL version="1.0.1" ---> Running in b018b729a691 Removing intermediate container b018b729a691 ---> 6dce3019eb20 Step 3/12 : LABEL repository="http://github.com/netlify/actions" ---> Running in 9018a26fa5d5 Removing intermediate container 9018a26fa5d5 ---> d912307e98b4 Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify" ---> Running in 30007db124fe Removing intermediate container 30007db124fe ---> 856b93570a8f Step 5/12 : LABEL maintainer="Netlify" ---> Running in 091541039dab Removing intermediate container 091541039dab ---> 0a538a5b6609 Step 6/12 : LABEL "com.github.actions.name"="Netlify" ---> Running in 0a49c4032aa4 Removing intermediate container 0a49c4032aa4 ---> 4c229bfc1b71 Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands" ---> Running in 035fcf72e75f Removing intermediate container 035fcf72e75f ---> 8c82fdd39fd9 Step 8/12 : LABEL "com.github.actions.icon"="cloud" ---> Running in bba896a18b3b Removing intermediate container bba896a18b3b ---> 444c124f8beb Step 9/12 : LABEL "com.github.actions.color"="blue" ---> Running in 27be1fe832be Removing intermediate container 27be1fe832be ---> 76c7f8fb6fc0 Step 10/12 : RUN yarn global add netlify-cli ---> Running in 6345b5bdb062 yarn global v1.22.18 [1/4] Resolving packages... warning netlify-cli > @netlify/build > @.: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning netlify-cli > @netlify/build > got > @types/cacheable-request > @@.: This is a stub types definition. responselike provides its own type definitions, so you do not need this installed. warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > @.: See https://github.com/lydell/source-map-resolve#deprecated warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: https://github.com/lydell/resolve-url#deprecated warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: See https://github.com/lydell/source-map-url#deprecated warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: Please see https://github.com/lydell/urix#deprecated [2/4] Fetching packages... error @.***: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12" info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command. error Found incompatible module. The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1

Warning: Docker build failed with exit code 1, back off 7.865 seconds before retry. /usr/bin/docker build -t 786a9b:95baff00ab804ec6beb62c8d24a8b7fe -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli" Sending build context to Docker daemon 5.12kB

Step 1/12 : FROM node:12-alpine ---> bb6d28039b8c Step 2/12 : LABEL version="1.0.1" ---> Using cache ---> 6dce3019eb20 Step 3/12 : LABEL repository="http://github.com/netlify/actions" ---> Using cache ---> d912307e98b4 Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify" ---> Using cache ---> 856b93570a8f Step 5/12 : LABEL maintainer="Netlify" ---> Using cache ---> 0a538a5b6609 Step 6/12 : LABEL "com.github.actions.name"="Netlify" ---> Using cache ---> 4c229bfc1b71 Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands" ---> Using cache ---> 8c82fdd39fd9 Step 8/12 : LABEL "com.github.actions.icon"="cloud" ---> Using cache ---> 444c124f8beb Step 9/12 : LABEL "com.github.actions.color"="blue" ---> Using cache ---> 76c7f8fb6fc0 Step 10/12 : RUN yarn global add netlify-cli ---> Running in 830d8892961f yarn global v1.22.18 [1/4] Resolving packages... warning netlify-cli > @netlify/build > @.: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > @.: See https://github.com/lydell/source-map-resolve#deprecated warning netlify-cli > @netlify/build > got > @types/cacheable-request > @@.: This is a stub types definition. responselike provides its own type definitions, so you do not need this installed. warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: https://github.com/lydell/resolve-url#deprecated warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: See https://github.com/lydell/source-map-url#deprecated warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: Please see https://github.com/lydell/urix#deprecated [2/4] Fetching packages... error @.***: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command. The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1 Warning: Docker build failed with exit code 1, back off 6.56 seconds before retry. /usr/bin/docker build -t 786a9b:95baff00ab804ec6beb62c8d24a8b7fe -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli" Sending build context to Docker daemon 5.12kB

Step 1/12 : FROM node:12-alpine ---> bb6d28039b8c Step 2/12 : LABEL version="1.0.1" ---> Using cache ---> 6dce3019eb20 Step 3/12 : LABEL repository="http://github.com/netlify/actions" ---> Using cache ---> d912307e98b4 Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify" ---> Using cache ---> 856b93570a8f Step 5/12 : LABEL maintainer="Netlify" ---> Using cache ---> 0a538a5b6609 Step 6/12 : LABEL "com.github.actions.name"="Netlify" ---> Using cache ---> 4c229bfc1b71 Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands" ---> Using cache ---> 8c82fdd39fd9 Step 8/12 : LABEL "com.github.actions.icon"="cloud" ---> Using cache ---> 444c124f8beb Step 9/12 : LABEL "com.github.actions.color"="blue" ---> Using cache ---> 76c7f8fb6fc0 Step 10/12 : RUN yarn global add netlify-cli ---> Running in bd26d79e5c4c yarn global v1.22.18 [1/4] Resolving packages... warning netlify-cli > @netlify/build > @.: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning netlify-cli > @netlify/build > got > @types/cacheable-request > @@.: This is a stub types definition. responselike provides its own type definitions, so you do not need this installed. warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > @.: See https://github.com/lydell/source-map-resolve#deprecated warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: https://github.com/lydell/resolve-url#deprecated warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: See https://github.com/lydell/source-map-url#deprecated warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > @.: Please see https://github.com/lydell/urix#deprecated [2/4] Fetching packages... error @.***: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command. The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1 Error: Docker build failed with exit code 1 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

KirioXX commented 2 years ago

Sorry, ignore me. The replacement works like a charm, I just didn't notice that there was a second use with netlify/actions/cli@master. Thanks 👍