If adding the required module in the function node properties, you don't need to install the required module manually.
Node RED will pull it in automatically for you.
Also @Moosbueffel you can't use require
in a function node.
Just call into any offerings by the import as
value
so if import as
is set to AST
then In a function node:
AST.deepStrictEqual