Giter VIP home page Giter VIP logo

Comments (5)

Sebastian-Webster avatar Sebastian-Webster commented on August 29, 2024 2

Hi @mykola-mokhnach, never mind, Node.js 22.5.1 has came out and fixes that issue. nodejs/node#53902 (comment)

from cli.

mykola-mokhnach avatar mykola-mokhnach commented on August 29, 2024 1

thanks for the suggestion @milaninfy

Unfortunately it is not so simple for this particular case to use another Node.js version as they are retrieved automatically based on the latest LTS snapshots:

jobs:
  prepare_matrix:
    runs-on: ubuntu-latest
    outputs:
      versions: ${{ steps.generate-matrix.outputs.active }}
    steps:
    - name: Select all active LTS versions of Node.js
      id: generate-matrix
      uses: msimerson/node-lts-versions@v1

  test:
    needs:
    - prepare_matrix
    strategy:
      matrix:
        node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }}
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-node@v3
      with:
        node-version: ${{ matrix.node-version }}

We'd probably need to wait for the next node patch 🤷

from cli.

Sebastian-Webster avatar Sebastian-Webster commented on August 29, 2024 1

Hi @mykola-mokhnach, a quick workaround for that problem would be to set the node version manually like this:

jobs:
  test:
    strategy:
      matrix:
        node-version: [18.x, 20.x, 22.4.1]
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-node@v3
      with:
        node-version: ${{ matrix.node-version }}

and then once the patch for Node.js comes out you can go back to using the node-lts-versions action

from cli.

mchmatt avatar mchmatt commented on August 29, 2024

This is just a side effect - the step above it is failing silently (see #7672):
image
As a quick fix, make setup-node use v22.4 instead of latest

from cli.

milaninfy avatar milaninfy commented on August 29, 2024

Closing duplicate of #7657.
Try node 22.4.1 with npm 10.8.2.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.