LWP not available

How to fix the message “LWP not available” while running cpan:

First, update cpan:
install Bundle::CPAN
reload CPAN
install Bundle::LWP