Installing npm packages in docker - nodered

Hello
is it possible to install packages inside docker nodered?
I try to install eml-parser, html-pdf and mailparser and I have lots of errors
I am just a simple docker user (up to docker run....)

thank you