## 指定版本 1. npx create-react-app xxx 2. npm uninstall react react-dom 3. npm install react@18.3.1 react-dom@18.3.1 --save 4. npm start 1. npm create vite@latest 2. package.json 修改版本号 3. npm install 4. npm run dev ## 指定版本路由 npm install react-router-dom@6