I pulled the latest docker image of n8n to test some stuff on my pc.
One thing required me to move a file, which I wanted to do with the Execute Command node.
Can’t create a node of this type though.
I already set some environment variables to the compose.yml and made sure to recreate the container, but the node still doesn’t show up.
Since n8n v2.0, the Execute Command node is disabled by default via the NODES_EXCLUDE environment variable and must be explicitly re‑enabled. [v2.0 breaking changes; Block nodes]
To make the node appear again:
Set NODES_EXCLUDE so Execute Command is not excluded
Either enable all nodes:
environment:
- NODES_EXCLUDE="[]"
or, if you only want to keep LocalFileTrigger disabled:
The env var you want is NODES_INCLUDE or more likely you need to check that you’re setting the env vars in the right place in your compose file. They need to be under the environment: key for the n8n service, not at the top level. Can you paste the relevant part of your docker-compose.yml? Also double check the container actually restarted with docker compose down && docker compose up -d, sometimes docker compose restart doesn’t pick up env changes.