Ok released now [email protected] with the fix.
Just tested like that and it works now fine:
# Go in folder you want to install n8n in and install n8n with the modules you need
npm install n8n moment
# Allow access to the modules
export NODE_FUNCTION_ALLOW_EXTERNAL=moment
# Start n8n
node node_modules/.bin/n8n