Javascript/Node.js
Node - npm 설치 항목 목록 보는법
Back
2019. 3. 8. 17:12
npm 설치 항목 목록보기
npm global로 설치된 항목을 볼때
1 2 3 | npm ls -g npm list -g npm list -global | cs |
이 셋 중에 아무거나 해주면 된다.
그럼 모든 npm global(전역) 되어져 있는것을 확인 할 수 있다.
이러면 설치된 항목의 하위 항목(denpendency)까지 모두 보이게 된다.
그래서 npm install -g 설치한 모듈만 따로 보려면
1 | npm ls -g --depth=0 | cs |
이렇게 --depth=0을 추가 해주면 된다.
참고 : https://ponderingdeveloper.com/2013/09/03/listing-globally-installed-npm-packages-and-version/