I would like to use the bib style nejm in my document to have a bibliography like this style.
But I had a lot of errors! What should I change/add in my code?
\documentclass[num-refs]{wiley-article}
% Add additional packages here if required
\usepackage{siunitx}
\usepackage[super]{nth}
\usepackage{amsmath}
\usepackage{rotating}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{float}
\usepackage[backend=biber,style=nejm]{biblatex}
\addbibresource{sample.bib}
\begin{document}
...
\printbibliography
...
\end{document}
Produces the following error messages
/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.sty, line 462
LaTeX Error: Command \bibhang already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation. Type H
<return> for immediate help. ...
l.462 \newlength{\bibhang}
Your command was ignored. Type I <command> <return> to replace it with another command,
or <return> to continue without it.
/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.sty, line 9050
LaTeX Error: Command \citename already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation. Type H
<return> for immediate help. ...
l.9050 ...d*{\citename}{\blx@citexpunct{citename}}
Your command was ignored. Type I <command> <return> to replace it with another command,
or <return> to continue without it.
/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.def, line 269
LaTeX Error: Command \bibfont already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation. Type H
<return> for immediate help. ...
l.269 ...ommand*{\bibfont}{\normalfont\normalsize}
Your command was ignored. Type I <command> <return> to replace it with another command,
or <return> to continue without it.
/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.def, line 2094
LaTeX Error: Command \Citeauthor already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation. Type H
<return> for immediate help. ...
l.2094 ...e\citeauthor*}{\bibsentence\citeauthor}}
Your command was ignored. Type I <command> <return> to replace it with another command,
or <return> to continue without it.
main.tex, line 68
Package biblatex Error: Incompatible package
'natbib'.
See the biblatex package documentation for explanation. Type H
<return> for immediate help. ...
The 'natbib' package and biblatex are incompatible.

wiley-articleclass is incompatible withbiblatex, presumably because it loadsnatbib. This is what the last errorPackage biblatex Error: Incompatible package 'natbib'.tries to tell you. – moewe Dec 17 '18 at 12:55