NPM CLI 가이드

28의 명령어를 찾았습니다

npm install
install
패키지를 설치합니다

예제:

$ npm install express
install
package
npm install -g
install
패키지를 전역으로 설치합니다

예제:

$ npm install -g nodemon
install
global
npm install --save-dev
install
개발 의존성으로 패키지를 설치합니다

예제:

$ npm install --save-dev jest
install
dev
development
npm install --save
install
프로덕션 의존성으로 패키지를 설치합니다

예제:

$ npm install --save lodash
install
production
save
npm ci
install
package-lock.json을 기반으로 정확한 의존성을 설치합니다

예제:

$ npm ci
ci
clean
install
npm uninstall
uninstall
패키지를 제거합니다

예제:

$ npm uninstall express
uninstall
remove
npm uninstall -g
uninstall
전역 패키지를 제거합니다

예제:

$ npm uninstall -g nodemon
uninstall
global
remove
npm update
update
패키지를 업데이트합니다

예제:

$ npm update
update
upgrade
npm outdated
update
오래된 패키지를 확인합니다

예제:

$ npm outdated
outdated
check
npm audit
update
보안 취약점을 검사합니다

예제:

$ npm audit
audit
security
vulnerability
npm audit fix
update
보안 취약점을 자동으로 수정합니다

예제:

$ npm audit fix
audit
fix
security
npm run
scripts
package.json의 스크립트를 실행합니다

예제:

$ npm run build
run
script
npm start
scripts
start 스크립트를 실행합니다

예제:

$ npm start
start
run
npm test
scripts
test 스크립트를 실행합니다

예제:

$ npm test
test
run
npm run dev
scripts
개발 서버를 시작합니다

예제:

$ npm run dev
dev
development
server
npm list
info
설치된 패키지 목록을 확인합니다

예제:

$ npm list
list
installed
npm list -g
info
전역 설치된 패키지 목록을 확인합니다

예제:

$ npm list -g --depth=0
list
global
npm info
info
패키지 정보를 확인합니다

예제:

$ npm info express
info
details
npm search
info
패키지를 검색합니다

예제:

$ npm search react
search
find
npm version
info
npm과 Node.js 버전을 확인합니다

예제:

$ npm version
version
node
npm init
config
새 package.json 파일을 생성합니다

예제:

$ npm init
init
package.json
npm init -y
config
기본값으로 package.json을 생성합니다

예제:

$ npm init -y
init
yes
default
npm config list
config
npm 설정을 확인합니다

예제:

$ npm config list
config
settings
npm config set
config
npm 설정을 변경합니다

예제:

$ npm config set registry https://registry.npmjs.org/
config
set
registry
npm cache clean
config
npm 캐시를 정리합니다

예제:

$ npm cache clean --force
cache
clean
npm publish
publish
패키지를 npm 레지스트리에 게시합니다

예제:

$ npm publish
publish
registry
npm login
publish
npm 레지스트리에 로그인합니다

예제:

$ npm login
login
auth
npm whoami
publish
현재 로그인된 사용자를 확인합니다

예제:

$ npm whoami
whoami
user