Node 8 installs different versions depending on system
See original GitHub issueWhen 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:
- Created 4 years ago
- Reactions:3
- Comments:23 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@damccorm can we get some movement on this? It’s a pretty important issue.