Hello
@JD_PM, I'm not an expert at all in this kind of things but I had the same problem the first time I tried to use tikz-feynman, I don't know if this will work for you but I'll tell you how I fix it (if it doesn't work then I have no idea).
In my case, the problem is that I was using the PDFLaTeX compiler (which was the default option), but to use some functionalities of tikz-feynman you must use the LuaLaTeX compiler.
Here's how I discovered the problem and how I fixed it (in case it helps you)
In my case, I use TexMaker as the editor to write LaTeX documents. In it, you can look at the log and usually it gives a message when something is wrong (In any case, look if you have some document named "Name_of_the_document.log" and open it with the notepad), I got the following message:
Package tikz-feynman Warning: LuaTeX is required if you wish to have vertices automatically placed. You can disable this warning by setting /tikzfeynman/warn luatex=false on input line 50.
Then I found that, in fact, the first line of the log was
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.7) (preloaded format=pdflatex 2020.8.21)
And found that, when I click the Run button (that for me was some kind of magic that make appear a pdf with the things I wrote) it was really doing two things: PdfLaTeX + View PDF (which I assume are some kind of commands)
After looking into the options of the editor I finally found that there was the option of compiling using LuaLaTeX, and after doing that (and the View PDF) i finally got the diagram correctly and my log file start with
This is LuaHBTeX, Version 1.12.0 (MiKTeX 20.7) (format=lualatex 2020.8.22)
and there was no Package tikz-feynman Warning
Hope it helps you