Skip to content

Nest.js 常用依赖 ​

config ​

shell
pnpm i --save -D @nestjs/config

yaml ​

sh
# 安装依赖
npm i --save -dev @types/js-yaml js-yaml

websocket ​

shell
pnpm i --save -D @nestjs/websockets @nestjs/platform-socket.io socket.io

jwt ​

shell
pnpm i --save -D @nestjs/jwt
pnpm i --save -D @nestjs/passport @types/passport-jwt passport-jwt

mongoose ​

shell
pnpm i --save -D @nestjs/mongoose mongoose

mysql ​

shell
pnpm i --save -D mysql2
pnpm i --save -D @nestjs/typeorm typeorm

multer ​

shell
pnpm i --save -D @types/multer multer

env ​

shell
pnpm i --save -D cross-env

rabbitMQ ​

shell
pnpm i --save -D amqplib amqp-connection-manager

ali-oss ​

shell
pnpm i --save -D ali-oss dayjs

DTO 参数验证 ​

shell
pnpm install --save -D class-validator class-transformer