[Tex/LaTex] Undefined control sequence makecvtitle in moderncv package

moderncv

I am using moderncv package in a tex document. I am compiling with pdflatex, and full texlive package downloaded from CTAN. The error I'm getting is:

line 7: Undefined control sequence \makecvtitle

Here is a minimum working example:

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\name{Holmes}{Sherlock}
\insti{Institute Name}

\begin{document}
\makecvtitle
\end{document}

Best Answer

A command \insti should not be accessed. You are not an institute but a person that hopefully is able to change it if desired.

I hope the following MWE (illustrating an institution of education and an institute where you have worked at or are currently working at) helps to explain why:

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\name{Holmes}{Sherlock}

\begin{document}
\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{Grade}{Majors}

\section{Work}
\cvitem{year--year}{Dishwasher at Institute Name}
\end{document}