in reply to Detecting failures easily/obviously with cpanm

Hi hippo,

For large numbers of modules I usually make use of cpanm's --installdeps switch, which requires building a list of modules you wish to install and saving to a simple formatted file typically named cpanfile. The output from this command (which I run with --quiet as already suggested by stevieb) includes failures at the end something like:

! Installing the dependencies failed: Module 'NOTstrictures' is not in +stalled ! Bailing out the installation for .

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Detecting failures easily/obviously with cpanm
by hippo (Archbishop) on Jun 17, 2022 at 11:25 UTC

    This sounds very promising, 1nickt - thank you. It might just be the best compromise and I will definitely give it a try.

    Update: Some three weeks on and I have now used this method several times for installing long lists of dependencies for applications. It does exactly what I want - thanks very much for the pointer.


    🦛