$ npm i -g @nestjs/cli
$ nest new backend
✨ We will scaffold your app in a few seconds..
? Which package manager would you ❤️ to use? (Use arrow keys)
npm
yarn
> pnpm
roxie@Book3 MINGW64 /d/chunjae/classLink/Renewal/class-link3
$ nest new backend
✨ We will scaffold your app in a few seconds..
? Which package manager would you ❤️ to use? (Use arrow keys)
√ Which package manager would you ❤️ to use? pnpm
CREATE backend/.prettierrc (54 bytes)
CREATE backend/eslint.config.mjs (890 bytes)
CREATE backend/nest-cli.json (179 bytes)
CREATE backend/package.json (2106 bytes)
CREATE backend/README.md (5126 bytes)
CREATE backend/tsconfig.build.json (101 bytes)
CREATE backend/tsconfig.json (565 bytes)
CREATE backend/src/app.controller.ts (286 bytes)
CREATE backend/src/app.module.ts (259 bytes)
CREATE backend/src/app.service.ts (150 bytes)
CREATE backend/src/main.ts (236 bytes)
CREATE backend/src/app.controller.spec.ts (639 bytes)
CREATE backend/test/jest-e2e.json (192 bytes)
CREATE backend/test/app.e2e-spec.ts (699 bytes)
- Installation in progress... ☕
Failed to execute command: pnpm install --strict-peer-dependencies=false --reporter=silent
× Installation in progress... ☕
🙀 Packages installation failed!
In case you don't see any errors above, consider manually running the failed command pnpm install --strict-peer-dependencies=false to see more details on why it errored out.
Thanks for installing Nest 🙏
Please consider donating to our open collective
to help us maintain this package.
🍷 Donate: <https://opencollective.com/nest>
$ pnpm start:dev
Error
Delete `␍`eslintprettier/prettier
- 이 오류는 줄바꿈 문자(line endings)와 관련된 문제입니다. Windows 시스템에서는 CRLF(␍)를 사용하고, Unix/Linux 시스템에서는 LF(␊)를 사용하는데, 현재 코드에서 CRLF를 제거하고 LF만 사용하도록 요구하고 있습니다.
해결 방안

// .eslintrc.js
{
...,
rules: {
...,
'prettier/prettier': ['error', {
'endOfLine': 'auto'
}]
},
}
$ pnpm i typeorm @nestjs/typeorm class-validator class-transformer @nestjs/config joi mysql bcrypt @nestjs/jwt
$ pnpm i -D @types/bcrypt