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 :
Recommended Articles