New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Cannot find module espree.cjs #15343
Comments
I think this is happening because eslint-config-standard hasn’t been upgraded to support ESLint 8. @aladdin-add what do you think? |
mixed things: it's because the "ecmaVersion: 13" was generated via eslint v8, while eslint v7 does not support ecma 13.(eslint v7 was reinstalled as to fix the error, you can change |
Duplicate of #15159 |
I have something to add After installing v8.3 explicitly and then running
Then, I was prompted to install some additional modules
Apart from the error mentioned above, I noticed that the As a workaround, I manually adjusted eslint version in package.json and then repeated the init wizard without downloading those modules again. Like this, the file was generated successfully. |
This is most likely caused by overwriting ESLint with another version while |
Environment
Node version: v16.11.1
npm version: npm@8.1.3
Local ESLint version: v7.32.0
Global ESLint version:
Operating System: MacOS 12.0.1 (21A559)
What parser are you using?
Default (Espree)
What did you do?
What did you expect to happen?
Initialised
What actually happened?
Failed ...
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: