# Upgrading for Git source code
## 1. switch to the NocoBase project directory
```bash
cd my-nocobase-app
```
## 2. Pull the latest code
git pull
## 3. 删除旧依赖文件(非必须)
v0.10 进行了依赖的重大升级,如果 v0.9 升级 v0.10,需要删掉以下目录之后再升级
# 删除 .umi 相关缓存
yarn rimraf -rf ./**/{.umi,.umi-production}
# 删除编译文件
yarn rimraf -rf packages/*/*/{lib,esm,es,dist,node_modules}
# 删除全部依赖
yarn rimraf -rf node_modules
## 4. Update dependencies
yarn install
## 5. Execute the update command
yarn nocobase upgrade
## 6. Start NocoBase
development environment
yarn dev
Production environment
# compile
yarn build
# Start
yarn start # Not supported on Windows platforms yet