question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Node 8 installs different versions depending on system

See original GitHub issue

When setting up Node with the next strategy matrix and action from v1 or master:

strategy:
      matrix:
        node_version: [8, 10, 12]
        os: [ubuntu-latest, windows-latest, macOS-latest]

# ...

    - name: Use Node ${{ matrix.node_version }}
      uses: actions/setup-node@master
      with:
        version: ${{ matrix.node_version }}

With Node 10 and 12, it works like a charm, installing 10.16.2 and 12.8.0 respectively, using 10 or '10.x' and 12 or '12.x', but with Node 8 using 8 or 8.x it will not install the latest version in Windows. I made a table with the versions installed depending on the base system and the value in the node_version array specified:

System specified Node specified Node installed
ubuntu-latest 8 8.16.0
macOS-latest 8 8.16.0
windows-latest 8 8.10.0
ubuntu-latest 8.x 8.16.0
macOS-latest 8.x 8.16.0
windows-latest 8.x 8.10.0
ubuntu-latest 8.16 8.16.0
macOS-latest 8.16 8.16.0
windows-latest 8.16 8.16.0

Windows is installing 8.10 when Ubuntu and MacOS install 8.16. If we force 8.16 it will install it, but this is not scaling.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
XhmikosRcommented, Oct 16, 2019

But this is only observed with 8.x on Windows. Every other OS and Node.js version follows the latest release, which IMO is what I’d expect.

2reactions
XhmikosRcommented, Oct 8, 2019

@damccorm can we get some movement on this? It’s a pretty important issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Run Multiple Versions of Node.js with ... - DigitalOcean
The Node Version Manager is a great tool to use, allowing you to install multiple versions of Node.js and switch between them as...
Read more >
Switching between Node versions during development
Luckily, there are several decent ways to install multiple versions and switch as needed. This article will discuss and compare two popular Node...
Read more >
How do I install multiple Node versions on my Windows ...
Install nvm for Windows · Uninstall existing Node instances and remove existing installation directories · Uninstall existing npm install location ...
Read more >
Installing Multiple Versions of Node.js Using nvm - SitePoint
It provides a command-line interface where you can install different versions with a single command, set a default, switch between them and ...
Read more >
Using npm To Install A Specific Version Of A Node.js Package
The above command will install the particular package version you want, alongside any packages that it depends on. For example, to install a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found