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
  • Merge requests
  • !9359

feat: exit on outdated create-react-app version

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge feature/global-install-deprecation into master Jul 23, 2020
  • Overview 8
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: mrmckeb

Unfortunately this is a tricky problem. As @Timer pointed out, a global install catch would be triggered on npx and yarn create runs.

I couldn't find a way to determine if the user had initialised create-react-app with npx or yarn create specifically (although I was able to find out if they used yarn or npm) - but there may be a method I missed.

An alternative option is to use the command npm view create-react-app version - which returns the latest version as a string. This solution, however, is slow.


This PR:

  • Resolves #7422 (closed)
  • Closes #7452
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/global-install-deprecation