Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while install Az module in Powershell - Package 'Az.Accounts' failed to be installed

I come across an error message while installing Az module in Powershell in Windows 10. Any ideas?

Command used:

Install-Module Az -AllowClobber

Error message:

Package 'Az.Accounts' failed to be installed because: End of Central Directory record could not be found.

enter image description here

like image 591
Winter1984 Avatar asked Nov 19 '25 09:11

Winter1984


1 Answers

As mentioned in the comments, just re-open the powershell with administrator, it will work.

like image 194
Hury Shen Avatar answered Nov 20 '25 22:11

Hury Shen