eslint --init fails with "TypeError: Cannot read property 'trim' of null" when npm is not installed #9102
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
cli
Relates to ESLint's command-line interface
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Right now I am just initializing the config.
What did you do? Please include the actual source code causing the issue.
I am trying to use eslint for a project. I just installed it locally using package.json and yarn and run
./node_modules/.bin/eslint --init
.What did you expect to happen?
I expect a .eslintrc to be written.
What actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: