\documentclass[11pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{atchi}
\begin{document}
\begin{tikzpicture}
\draw (-6,0)--(0,6);
\end{tikzpicture}
\end{document}
How to fix this error:
LaTeX Error: File
tikz.stynot found.


pgf. This the MiKTeX package which containstikz.sty, and it is not installed by default by the basic installer. – Bernard Feb 02 '19 at 12:57