Npm dependencies before installation

'npm list' can only be run to list installed packages, while I want the same command to be run before installation (to predict if the installation will work).

Suppose you have package.json with dependency A. It has dependencies B, C and D and D has dependency on E. Is there a command to generate the entire version list of which versions will be installed? eg,

A
--B
--C
--D
---E

      

edit: "npm view testpackage" seems to show the first dependencies before installing but does not go beyond lvl 1

+3


source to share





All Articles