Supply and installation of an electric generator to operate the crane