If you are being promoted for FTP details when trying to add WordPress plugins on your localhost then you can easily avoid this by using the alternate direct WordPress upload method. All you need to do is open up the wp-config.php on your WordPress installation and add the following line:-
When you refresh your upload/update page you will now not be prompted for the FTP credentials.
Join in the Discussion