Description
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
Type
Projects
Status