Workflow stopped after updating my n8n to V2 "Problem running workflow Unrecognized node type: n8n-nodes-base.executeCommand"

Hello everyone,

After updating n8n to V2, my workflows have stopped working. none of my Execute Nodes are now disabled, and I was using them to run my own local JavaScript files. Could anyone please help me figure out how to fix this?

I am using require("node-fetch") and require("fast-xml-parser") in my JS that is not supported in Code Node !

Hello, Bud!

To re‑enable the Execute Command node, you need to make sure it’s not excluded via the NODES_EXCLUDE environment variable.

If you previously blocked it using NODES_EXCLUDE, set the variable to an empty array and restart n8n. Or add this parameter to restart, in V2 comes default disable.

For example, in your docker-compose.yml:

environment:
  - NODES_EXCLUDE=[]

Hope this help.

1 Like

Yes I can definitely help with this let connect

Hey @shahrooz_m !

Execute Command is disabled by default for security purposes!

n8n v2 blocks the Execute Command node unless you explicitly re‑enable it.

Cheers!

tl;dr

set the empty environment variable

NODES_EXCLUDE=

Can I also fix this securely, so that I can just enable what I need and not everything?