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.

Cannot find module '../build/cli' when installing jest@24.0.0-alpha.x or jest@beta

See original GitHub issue

🐛 Bug Report

Maybe I’m missing something obvious here but shouldn’t the alpha versions of jest be installable ? The build folder is missing when installing jest@24.0.0-alpha.x.

To Reproduce

Steps to reproduce the behavior:

mkdir test
cd test
yarn init -yp
yarn add jest@24.0.0-alpha.7 (or jest@beta)
yarn jest --version

$ /my/local/path/to/test/node_modules/.bin/jest --version
module.js:549
    throw err;
    ^

Error: Cannot find module '../build/cli'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/my/local/path/to/test/node_modules/jest-cli/bin/jest.js:16:3)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
error Command failed with exit code 1.

Run npx envinfo --preset jest

Paste the results here:

System:
    OS: macOS 10.14.1
    CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  Binaries:
    Node: 8.11.4 - /usr/local/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 5.6.0 - /usr/local/bin/npm
  npmPackages:
    jest: 24.0.0-alpha.7 => 24.0.0-alpha.7

Are alpha version installable or not at all ?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
mjesuncommented, Dec 13, 2018

🤭 Doing it right now.

1reaction
mjesuncommented, Dec 13, 2018

24.0.0-alpha.8 is out, which should be installable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detox fails with "Cannot find module 'jest-cli/build/cli/args'"
Cannot find module 'jest-cli/build/cli/args'. You should add jest-cli to your package.json 's devDependencies and re-run npm install , e.g.:
Read more >
Cannot find module '@angular/core/testing' - You.com
Cannot find module '@angular/core/testing' from 'node_modules/jest-preset-angular/build/setup-jest.js. app references appear to be fine.
Read more >
1 - Salesforce Stack Exchange
Jest error: Cannot find module 'lightning/alert' from '.../newAccount.test.js' · Ask Question. Asked 5 months ago. Modified 5 months ago. Viewed 129 times.
Read more >
Angular >=13 | jest-preset-angular - GitHub Pages
Cannot find modules error when importing any deep paths from Angular ESM format packages​. Cannot find module '@angular/common/locales/xx' from 'src/app/app.
Read more >
@storybook/addon-storyshots - npm
config.json . If this is missing it leads to the following error: Cannot find module 'spdx-license-ids' from 'scan.js ...
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