Jest: Cannot find module '../build/cli' when installing [email protected] or jest@beta

Created on 13 Dec 2018  路  4Comments  路  Source: facebook/jest

馃悰 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 [email protected].

To Reproduce

Steps to reproduce the behavior:

mkdir test
cd test
yarn init -yp
yarn add [email protected] (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 ?

Bug Hi-Pri

Most helpful comment

馃き Doing it right now.

All 4 comments

Oh, wow, that's definitely a bug! @mjesun @rubennorte @rickhanlonii any of you able to release a new one with fixed distribution?

馃き Doing it right now.

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

Perfect, it works now :) Thank you very much !

Was this page helpful?
0 / 5 - 0 ratings