---
# System prepended metadata

title: mocks-api-main 注意事項
tags: [npm, nodemon, yarn]

---

安裝 yarn
```shell=
npm install -g yarn
```
驗證 yarn
```shell=
yarn --version
```
安裝套件
```shell=
yarn install
```
用 yarn 執行專案
```shell=
yarn run
```
安裝 nodemon
```shell=
npm install nodemon -g
```
用 nodemon 執行專案
```shell=
nodemon server.js
```
