Sometimes when updating plugins, themes or the WordPress engine, a window may appear asking for a username, password, FTP server address for downloading new files, so that this does not happen, you can add a line to the wp-config.php configuration file:
define('FS_METHOD', 'direct');
After that, the update will occur directly. In case of update error, you need to check the owner and group for directories and files on the server.
