- install yarn berry
- install Nextjs, eslint, prettier, sass
Yarn berry
if you don't have yarn yet
npm i -g yarn
install react or react typescript anything you want
yarn create next-app
and change set to berry version
yarn set version berry
checkout the file location and if you open location, press ctrl+ '.yarn/releases/yarn-3...'
find .yarnrc.yml and remove nodeLinker: node-modules and add yarnPath
//nodeLinker: node-modules <- remove this!!
yarnPath: .yarn/releases/yarn-3.2.1.cjs
you will see results below
yarn install
add bellow on .gitignore
### yarn ###
# Not using Zero-Install
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
https://haranglog.tistory.com/28
https://yarnpkg.com/getting-started/migration/#step-by-step
Eslint and Prettier
luckily Eslint already installed in Next.js
https://nextjs.org/docs/basic-features/eslint
and prettier
https://nextjs.org/docs/basic-features/eslint#prettier
https://nextjs.org/docs/basic-features/built-in-css-support#sass-support
반응형
'Network&etc > vscode&package.json' 카테고리의 다른 글
Error [ERR_REQUIRE_ESM]: require() of ES Module 해결 (0) | 2024.02.20 |
---|---|
RestClient - postman 쓰기 귀찮다면 (0) | 2022.03.22 |
Live Sass Compiler 자동변환 컴파일러 - VScode익스텐션 (0) | 2021.11.13 |
REST Client (0) | 2021.11.03 |
prettier,ESLint,typescript 설치방법 + 저장시 자동실행 (0) | 2021.07.31 |