Open In App

Web technologies Questions | Node.js Quiz | Set-1 | Question 4

Which of the below command will show all the modules installed locally ?
(A) npm ls -g
(B) npm ls
(C) node ls -g
(D) node ls

Answer: (B)
Explanation: The npm ls command print all the versions of packages that are installed locally in the system, It also displays all the dependencies that are present in the tree structure.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :