

The build is minified and the filenames include the hashes. It correctly bundles React in production mode and optimizes the build for the best performance. npm run build or yarn buildīuilds the app for production to the build folder. Runs the test watcher in an interactive mode.īy default, runs tests related to files changed since the last commit. You will see the build errors and lint warnings in the console. The page will automatically reload if you make changes to the code. Inside the newly created project, you can run some built-in commands: npm start or yarn start To create a new app, you may choose one of the following methods: npx You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects. We recommend using the latest LTS version. You’ll need to have Node 14.0.0 or later version on your local development machine (but it’s not required on the server). They are preconfigured and hidden so that you can focus on the code.Ĭreate a project, and you’re good to go. You don’t need to install or configure tools like webpack or Babel. When you’re ready to deploy to production, create a minified bundle with npm run build. ( npx comes with npm 5.2+ and higher, see instructions for older npm versions) If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app or yarn global remove create-react-app to ensure that npx always uses the latest version.
