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.

🐛 Getting error "execvp(3) failed.: No such file or directory" when attempting to run tests

See original GitHub issue

Bug 🐛

Version Info

  • Version of Majestic: 0.1.0
  • Version of Jest: 20.0.3
  • Version of Node: 6.11.5
  • Operating System: Sierra 10.12.3

When I attempt to run all tests or individual tests, I receive the following error:

execvp(3) failed.: No such file or directory

Jest config is in package.json

"jest": {
    "collectCoverageFrom": [
      "src/**/*.{js,jsx}",
      "!src/registerServiceWorker.js",
      "!src/Components/**/index.js",
      "!src/Components/StaticDevContent/*",
      "!src/actions/showStaticContent.js",
      "!src/reducers/showStaticContent.js"
    ],
    "coverageReporters": [
      "lcov"
    ],
    "setupFiles": [
      "<rootDir>/config/polyfills.js",
      "jest-localstorage-mock"
    ],
    "testMatch": [
      "<rootDir>/src/**/__tests__/**/*.js?(x)",
      "<rootDir>/src/**/?(*.)(spec|test).js?(x)"
    ],
    "testEnvironment": "node",
    "testURL": "http://localhost",
    "transform": {
      "^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
      "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
      "^(?!.*\\.(js|jsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
    },
    "transformIgnorePatterns": [
      "[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
    ],
    "moduleNameMapper": {
      "^react-native$": "react-native-web"
    }
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
izakfilmaltercommented, Jan 19, 2018

Ran into the same bug. Using nvm as well.

0reactions
Raathigeshcommented, Mar 22, 2019

Would you be able to give it a try now? If you run into issues, please reach out via https://spectrum.chat/majestic

Closing this for now. Feel free to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - 🐛 Getting error "execvp(3) failed.: No such file or ...
Getting error "execvp(3) failed.: No such file or directory" when attempting to run tests.
Read more >
execvp() wont load file: "No such file or directory"
If you use execvp , you are saying that the executable will be found "in the path"; that is, in one of the...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild ... No such file or directory" status:RESOLVED resolution:OBSOLETE severity:normal ...
Read more >
#22066 (gcc44, gcc45, gcc46, gcc48, gcc49, gcc5: error trying ...
I'm trying to add gcc44 support to pdftk (see #15420) but I'm running into this ... gcj: error trying to exec 'ecj1': execvp:...
Read more >
compilation fail with external toolchain. - Google Groups
+1 what Lukacs said, and for the specific error message you are getting ("execvp(argv[0], argv): No such file or directory"), it means that...
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