Search code examples
reactjscreate-react-app

Where are the packages in init react-app?


The npm init react-app my-app command imports many packages to the project, but, why this dependencies are not in the package.json?


Solution

  • The dependencies are in the package.json of react-scripts which your project will depend on when initializing it. The only dependency of your project will be react-scripts.

    If you want to manage these yourself you need to eject your project.