명령어 마스터
yarn
황금비비새
2020. 7. 30. 09:46
yarn | package.json 설치 ( == npm install ) |
yarn add <package> | 패키지 설치 ( == npm i <package> ) |
yarn add <package> --dev | 패키지 개발용으로 설치 ( --production 빌드 시 포함 안됨 ) |
yarn remove <package> | 패키지 삭제 |
yarn upgrade | package.json 업그레이드 ( version rule에 따라서 ) |
yarn upgrade <package>@<version> | 패키지를 특정 버전으로 업그레이드 |
yarn upgrade upgrade-interactive | 업그레이드 interactive terminal ui 제공 |
yarn install --production | production 환경에서 필요한 dependencies만 설치 |