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.

Failing to execute correct node file

See original GitHub issue

Description: When this action is run on actions/setup-node@v3.4.0 it fails to execute node with:

/usr/local/bin/docker exec  825742ed8cb56497af43a3e9cad45d62a8173d83a0d7ee04089e4661011a3157 sh -c "cat /etc/*release | grep ^ID"
Attempting to download [14](https://github.com/Soluto-Private/trailhead/runs/7286847871?check_suite_focus=true#step:4:15)...
Acquiring 14.20.0 - x64 from https://github.com/actions/node-versions/releases/download/14.20.0-2633808318/node-14.20.0-linux-x64.tar.gz
Extracting ...
/bin/tar xz --strip 1 -C /__w/_temp/522c4b56-fe91-4c39-9441-4326bea08743 -f /__w/_temp/21d5041b-557e-46ea-9bd6-d39a79fcc807
Adding to the cache ...
Done
/__t/node/14.[20](https://github.com/Soluto-Private/trailhead/runs/7286847871?check_suite_focus=true#step:4:21).0/x64/bin/node --version
Error: There was an error when attempting to execute the process '/__t/node/14.20.0/x64/bin/node'. This may indicate the process failed to start. Error: spawn /__t/node/14.20.0/x64/bin/node ENOENT

Action version: actions/setup-node@v3.4.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

yarn v1.22.19 node 14.20.0

Repro steps:
Adding an action with:

- name: Use Node.js 14.x
  uses: actions/setup-node@v3
  with:
    node-version: 14

Will trigger the issue.

Expected behavior: I expect the install to succeed without any errors.

Actual behavior: The installation fails when it tries to execute the node executable, specifically running the command:

node --version

Edit: It also looks like this is only occurring with the docker container:

image: node:14-alpine

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dmitry-shibanovcommented, Jul 13, 2022

Hello @Gabe-Ambrosio. Thank you for response. I’ll prefer to keep the issue open until new release.

1reaction
Gabe-Ambrosiocommented, Jul 12, 2022

Hi @vsafonkin , I just wanted to say thank you for the prompt response and for your team’s help in fixing the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run node app.js file
Unable to run node app.js file. I came to this question in a very basic scenario. I was missing to mention an end...
Read more >
15 Common Error Codes in Node.js and How to Fix Them
15. EPERM · Close all instances of your editor before rerunning the command (maybe some files were locked by the editor). · Clean...
Read more >
6 reasons your Node.js apps are failing
Can't figure out why your Node.js applications are failing? This article covers common Node failure points and the open source tools you can...
Read more >
Top 10 Most Common Node.js Developer Mistakes
When i trying to do npm run dev for second service, getting following error : Failed to load service '/home/thrymr/Desktop/paylief-backend/payroll_engine/src/ ...
Read more >
Recover from an Initial Node Failure
For more information, see Configure Client File Service and Tableau Server Client File Service. Note: This operation includes steps that you may need...
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