Getting had non-zero exit status”Updating HTML index of packages in '.Library' for every packages I install. What should I do?

install.packages("AER")

also installing the dependencies ‘nloptr’, ‘pbkrtest’, ‘lme4’, ‘car’

Warning message in install.packages("AER"):
“installation of package ‘nloptr’ had non-zero exit status”Warning message in install.packages("AER"):
“installation of package ‘lme4’ had non-zero exit status”Warning message in install.packages("AER"):
“installation of package ‘pbkrtest’ had non-zero exit status”Warning message in install.packages("AER"):
“installation of package ‘car’ had non-zero exit status”Warning message in install.packages("AER"):
“installation of package ‘AER’ had non-zero exit status”Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

what should I do for this?

Hello @Achyuthsai,

you give us too little information to be able to help you.
Start by showing us the output of

sessionInfo()

Also it is interesting to know if you could install other packages before this one.
A known problem while installing packages in Windows is a Windows username
with strange characters (i.e. other than a-z, A-Z, 0-9 ) .

Please check other problems (and solutions) with the package-installation tag
in the community by double clicking on the tag.