Skip to content

Environment details is empty and node is not found #1210

Closed
@ValentinVignal

Description

@ValentinVignal

Description:

It seems like node is not installed after using the action. Unfortunately, I cannot provide a reproductible example or a link as my company's repository is private.

After running

- uses: actions/checkout@v4
- uses: actions/setup-node@v4

when I try to use node, I get the error node: command not found.

Also, the logs about environment details seem empty:

Environment details
  node: 
  npm: 
  yarn:

I might be missing something or it might be because of my company's repos rules/set up.

What could it be ?

Action version:
v4

Platform:
I'm not sure as I don't have access to the details of the image but I think it would be Ubuntu

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.

Expected behavior:
A description of what you expected to happen.

Actual behavior:

The logs seems empty (look at Environment details)

Run actions/setup-node@v4
  with:
    always-auth: false
    check-latest: false
    token: ***
  env:
    PATH: ***
Run '/home/runner/k8s/index.js'
  shell: /home/runner/externals/node {0}
Environment details
  node: 
  npm: 
  yarn:

I get the error

node: command not found

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions