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

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

Open
daschuer opened this issue Sep 4, 2022 · 12 comments

Comments

@daschuer
Copy link

daschuer commented Sep 4, 2022

Our mixxx manual CI fails now because of

https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error [email protected]: 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
Copy link
Contributor

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

@daschuer
Copy link
Author

daschuer commented Sep 4, 2022

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
Copy link

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

@daschuer
Copy link
Author

daschuer commented Sep 5, 2022

I can also confirm that #60 (comment)
Is working well.

@soniCaH
Copy link

soniCaH commented Sep 5, 2022

#60 (comment) 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
Copy link

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
Copy link

dora-michal-adyen commented Sep 5, 2022

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
Copy link

asgerjensen commented Sep 5, 2022 via email

@asgerjensen
Copy link

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
Copy link

KirioXX commented Sep 7, 2022

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 > [email protected]: 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/[email protected]: 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 > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error [email protected]: 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 > [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
  warning netlify-cli > @netlify/build > got > @types/cacheable-request > @types/[email protected]: 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 > [email protected]: https://github.com/lydell/resolve-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error [email protected]: 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 > [email protected]: 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/[email protected]: 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 > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
  warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error [email protected]: 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
Copy link

asgerjensen commented Sep 7, 2022 via email

@KirioXX
Copy link

KirioXX commented Sep 7, 2022

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants