Skip to content

Run yarn install during create-react-app to prevent yarn.lock from changing #4875

@JBallin

Description

@JBallin

Is this a bug report?

yes

Which terms did you search for in User Guide?

"yarn install"

Environment

Environment:
  OS:  macOS High Sierra 10.13.6
  Node:  8.11.3
  Yarn:  1.9.4
  npm:  5.6.0
  Watchman:  Not Found
  Xcode:  Xcode 9.4.1 Build version 9F2000
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: ^16.4.2 => 16.4.2
  react-dom: ^16.4.2 => 16.4.2
  react-scripts: 1.1.4 => 1.1.4

Steps to Reproduce

$ npx create-react-app yarn-test
$ cd yarn-test
$ git init
$ git add .
$ git commit -m "Initial commit"
$ yarn install
$ git status
modified:   yarn.lock

Expected Behavior

No changes to yarn lock file, should automatically run yarn install when creating the app.

Actual Behavior

yarn.lock had changes to commit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions