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.

System version of node has priority over manually installed version

See original GitHub issue

Description: After using actions/setup-node to install a specific node version, the system installed one apparently still has priority over manually installed version.

Couple of hours ago, my builds started to fail since one of the build tools uses /usr/local/bin/node, which is in version 16.13.2, while the one installed by setup-node is located at /opt/hostedtoolcache/node/14.18.3/x64

I presume that setup-node does not place the version it installed in path correctly, so the build tool finds the system version of node instead the manually installed one.

Action version: v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version: Node 14 Yarn 1.22.17

Repro steps:
https://github.com/netgen-layouts/layouts-ezplatform/runs/5110578290?check_suite_focus=true

Expected behavior: I expected for the system to use Node version I installed manually.

Actual behavior: System uses preinstalled node version instead.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

5reactions
juliusvdijkcommented, Feb 8, 2022

In our workflow only setup-php was updated.

It does not seem likely to me that this would or should impact setup-node.

However, running setup-php first and then setup-node actions fixed it for us.

image

3reactions
klaus-gsmacommented, Feb 8, 2022

So this looks like it’s an issue with setup-php rather than this action, no?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using npm To Install A Specific Version Of A Node.js Package
It's possible to use npm to install a specific version of a package and save your project from breaking due to introducing incompatible...
Read more >
How to install older version of node.js on Windows?
Go here and find the version you want to install and then download the correct msi file and run the installer. You cannot...
Read more >
Which Node.js versions are available in Plesk
Which Node.js versions are available in Plesk? Answer. Plesk for Linux (version availability depends on OS version). Node.js 19; Node ...
Read more >
Cluster Manager - Proxmox VE
Running a cluster of Proxmox VE 6.x with earlier versions is not possible. The cluster protocol (corosync) ... First, install Proxmox VE on...
Read more >
3 Common Tasks — The Yocto Project ® 4.1.999 documentation
bbappend files for the same recipe are applied. You can either specify the priority manually, or allow the build system to calculate it...
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