"Npm 설치된 전역모듈 확인"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
3번째 줄: 3번째 줄:
;npm 설치된 글로벌모듈 목록 확인
;npm 설치된 글로벌모듈 목록 확인
;npm 설치된 모듈 확인
;npm 설치된 모듈 확인
<source lang='bash'>
<syntaxhighlight lang='bash'>
npm ls -g --depth=0
npm ls -g --depth=0
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:~# npm ls -g --depth=0
root@zetawiki:~# npm ls -g --depth=0
/usr/lib
/usr/lib
18번째 줄: 18번째 줄:
├── npm@2.15.5
├── npm@2.15.5
└── yuicompressor@2.4.8
└── yuicompressor@2.4.8
</source>
</syntaxhighlight>
:→ <code>--depth=0</code> 옵션을 쓰지 않으면 의존성트리 전체가 출력되어 보기에 불편하다.
:→ <code>--depth=0</code> 옵션을 쓰지 않으면 의존성트리 전체가 출력되어 보기에 불편하다.



2020년 11월 2일 (월) 02:54 판

1 개요

npm 설치된 전역모듈 목록 확인
npm 설치된 글로벌모듈 목록 확인
npm 설치된 모듈 확인
npm ls -g --depth=0
root@zetawiki:~# npm ls -g --depth=0
/usr/lib
├── bower@1.7.9
├── express-generator@4.13.4
├── graceful-fs@4.1.10
├── grunt-cli@1.2.0
├── gulp@3.9.1
├── gulp-notify@2.2.0
├── gulper@0.1.2
├── npm@2.15.5
└── yuicompressor@2.4.8
--depth=0 옵션을 쓰지 않으면 의존성트리 전체가 출력되어 보기에 불편하다.

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}