Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Error: Cannot find module '/home/user/test/node_modules/jest-cli' #154

@comerc

Description

@comerc

Environment

  1. npm ls react-scripts-ts (if you haven’t ejected): └── (empty)

  2. node -v: v8.4.0

  3. npm -v: 5.3.0

  4. yarn --version (if you use Yarn): 0.27.5

  5. Operating system: Ubuntu 14.04

Steps to Reproduce

  1. create-react-app test --scripts-version=react-scripts-ts
  2. cd test && npm install
  3. npm run eject
  4. npm run test
> node scripts/test.js --env=jsdom

module.js:491
    throw err;
    ^

Error: Cannot find module '/home/user/test/node_modules/jest-cli'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at getJest (/home/user/test/node_modules/jest/node_modules/jest-cli/build/cli/getJest.js:22:12)
    at Object.run (/home/user/test/node_modules/jest/node_modules/jest-cli/build/cli/index.js:39:48)
    at Object.<anonymous> (/home/user/test/scripts/test.js:27:6)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy