question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: ENOENT: no such file or directory, open 'node_modules/eslint-plugin-jest/lib/index.js'

See original GitHub issue

Tried using 22.6.2 but got: https://github.com/jest-community/eslint-plugin-jest/issues/268

So downgraded to 22.5.1 and get the following:

Error: ENOENT: no such file or directory, open '/home/user/project/bfrc2/node_modules/eslint-plugin-jest/lib/index.js'
    at Object.fs.openSync (fs.js:577:3)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
    at Object.fs.readFileSync (fs.js:483:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:563:29)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:721:20)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (internal/modules/cjs/loader.js:658:17)
    at require (internal/modules/cjs/helpers.js:20:18)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
AndyOGocommented, Sep 9, 2019

EDIT: Sorry for the noise, just had to reinstall the Eslint plugin of VSCode 😕

I get a similar error with "eslint-plugin-jest": "^22.17.0",:

ESLint: ENOENT: no such file or directory, open './aletheia/node_modules/eslint-plugin-jest/index.js'. Please see the 'ESLint' output channel for details.
3reactions
AndyOGocommented, Sep 9, 2019

@SimenB Thanks for your reply, I just edited my comment above. All fine, had to re-install the ESLint plugin for VSCode 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve Nodejs: Error: ENOENT: no such file or directory
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >
Error: ENOENT: no such file or directory, open 'libtaos.so' #2255
error Command failed with exit code 1.
Read more >
ENOENT: no such file or directory" (Doc ID 2895246.1)
When Selecting "Optimize Application" VBS Package Job Fails With "Error: ENOENT: no such file or directory" (Doc ID 2895246.1).
Read more >
Error: ENOENT: no such file or directory, scandir ... - YouTube
nodejsError: ENOENT : no such file or directory, scandir '**/node_modules/node-sass/vendor' | Module build failed (from .
Read more >
Error: ENOENT: no such file or directory, open
Error : ENOENT: no such file or directory, open ... openSync (node:fs:488:3); at C:\Program Files\Visualizer\preview\thirdparty\r.js:28332:19 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found