npm install 옵션

CMW·2021년 9월 17일

npm install

npm install <name>
  • -p 옵션 옵션
  • package.json dependencies에 기록
npm install <name> -D
  • 개발할 때만 필요한 옵션
  • package.json dev-dependencies에 기록
npm install <name> @latest
  • 가장 최근 버전
npm install <name> @0.1.3 
  • 0.1.3 버전 다운로드
npm install <name> - g
  • 글로벌하게 설치
  • 다른 프로젝트에서도 사용할 수 있음
npm install <name> - save
npm install <name> -S
  • dependency에 기록
  • 5.0.0 이후로는 필요없음

npm remove

npm remove <name> --save
  • dependencies에서 삭제
npm remove <name> --dev
  • devDependencies에서 삭제
profile
성장하는 개발자

0개의 댓글