Skip to content

Bug: eslint --env-info doesn't report correct Node/eslint version #19848

Closed
@markboyall

Description

@markboyall

Environment

Correct:
Node version: v24.2.0
npm version: v8.5.5
Local ESLint version: 9.28.0
Global ESLint version: Not found
Operating System: win32 10.0.19045

Wrong:
Node version: v16.15.0
npm version: v8.5.5
Local ESLint version: Not found
Global ESLint version: Not found
Operating System: win32 10.0.19045

What parser are you using?

@typescript-eslint/parser

What did you do?

See the reproduction repository, have some version of Node installed that is not 24.2.0, but instead of the readme command which reproduces a different issue, just run ./node_modules/node/bin/node.exe ./node_modules/eslint/bin/eslint.js --env-info.

What did you expect to happen?

The Node version should be the Node version that is actually being run. The eslint version should obviously be the current eslint version.

What actually happened?

eslint reports the installed Node, not the running Node. Additionally, eslint fails to report its own version.

Link to Minimal Reproducible Example

https://github.com/markboyall/eslint-file-included

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionbugESLint is working incorrectlygood first issueGood for people who haven't worked on ESLint beforehelp wantedThe team would welcome a contribution from the community for this issuerepro:yesIssues with a reproducible example

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy