To go along with the advice of Anonymous Monk...

Please list the specific modules that you are having trouble with, along with the output you get when you try to install them with cpanm. Also, I recommend that you do not install any other versions of perl until you have a better idea of what is causing your current issues (as multiple versions may alter your path in ways that can cause trouble). I currently use Strawberry Perl with App::cpanminus and I rarely have trouble installing modules. So, I suspect there is something wrong with your setup. If you give us more information, we may be able to help.

Update: The suggestion from Athanasius to install one of the PortableZIP editions is a good one. You should be able to download one of those, unzip the archive, and then run the portableshell.bat file contained in the root folder. Other perl installations should not interfere with it, and you can simply delete the entire folder if you want to remove it from your system.

Update #2: When installing a module with cpanm I often find it useful to use the verbose and prompt options to get more information. For example, to install Path::Tiny,

cpanm -v --prompt Path::Tiny
In the event of an error or failure, this may give you more information to work with.


In reply to Re: CPANM installs fail by kevbot
in thread CPANM installs fail by wrkrbeee

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.