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:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
🤭 Doing it right now.
24.0.0-alpha.8
is out, which should be installable.