React development environment configuration

Time:2021-10-21

Environment configuration summary

  • Familiarize yourself with possible windows instructions
  • Download and install node.js
  • Installing yarn on the console
  • Set the installation source of yarn
  • Create a react project using create react app

Common windows instructions

CD \ // return to the root directory
  CD path // switch to the specified directory
  MKDIR folder name // create a new folder

Installing yarn on the console

Enter in the console

npm install -g yarn

After installation

yarn --version

Configure yarn installation source

yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

Create a react project using create react app

Reference documents

Reference website

Yarn Chinese network
node.js
Windows command official website