1.React + Vite 的环境搭建
npm create vite
cd 项目名
npm install
npm run dev
npm run build
拓展:webpack+react的环境搭建
npm install babel -g
npm install webpack -g
npm install webpack-dev-server -g
npm install -g create-react-app
create-react-app 项目名
cd 项目名
npm start
npm test
npm run build