Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #1401
Closed
Open
Issue created Jan 17, 2017 by Administrator@rootContributor

e2e tests fail because of missing package.json

Created by: matoilic

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Can you reproduce the problem with latest npm?

Many errors, especially related to "missing modules", are due to npm bugs.

If you're using Windows, follow these instructions to update npm.

If you're using OS X or Linux, run this to update npm:

npm install -g npm@latest

cd your_project_directory
rm -rf node_modules
npm install

Then try to reproduce the issue again.

Can you still reproduce it?

Yes

Description

I was trying to fork react-scripts and extending it to have a more extended setup for my projects. While running the e2e tests they failed because create-react-app was not properly installed under $temp_cli_path. No node_modules folder was created. This also happened on all my CI nodes. Creating an empty package.json before running npm install $cli_path solved the issue.

I think more people could run into this issue and creating an empty package.json would make the e2e tests more stable.

Expected behavior

e2e tests should not fail on a fork with no changes.

Actual behavior

e2e tests failed.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected):
  2. node -v: v7.4.0, v6.9.4
  3. npm -v: 4.0.5, 3.10.10

Then, specify:

  1. Operating system: OS X El Capitan
  2. Browser and version: not browser related
Assignee
Assign to
Time tracking