일단 yarn을 설치해야 하는데, corepack을 통해서 패키지 관리자의 버전을 관리할 수 있다.
npm i -g corepack
corepack prepare yarn@stable --activate
yarn 설치
yarn -v
yarn set version berry
yarn version 설정
yarn init
yarn 프로젝트 시작 (npm init과 같다)
https://nodejs.org/api/corepack.html#corepack
Corepack | Node.js v20.0.0 Documentation
Corepack# Added in: v16.9.0, v14.19.0 Corepack is an experimental tool to help with managing versions of your package managers. It exposes binary proxies for each supported package manager that, when called, will identify whatever package manager is config
nodejs.org
'JavaScript' 카테고리의 다른 글
webpack의 기초에 대해서 알아보기 (0) | 2023.06.17 |
---|---|
선언식 함수와 화살표 함수에서의 this (0) | 2023.06.08 |
Proxy 사용하기 (0) | 2023.05.12 |
HTML 화면 스크린샷 찍기 (html2canvas) (0) | 2023.05.04 |
Modal 화면 구현 (Modal 외부 클릭 시 Modal 꺼짐) (0) | 2023.05.02 |