[Bug] Error when running command "n8n export:workflow --backup --all" on Windows VDS

A small bit of necromancy here (probably a note for the future me) :slight_smile:

While working on the syncer ( Syncing local n8n workflows with remote host ) i’ve figured out that it’s better to install n8n via npm.

I’ve ended up with command (%AppData%/npm/n8n start || n8n start)
The left part is for Windows. n8n is available there, after installing globally npm install n8n -g.
The right part is for Mac, as n8n is available straight away after the installation.
Haven’t tested on Linux, but expect it to work similarly.

If using the Desktop installation, still the path above can be unified to
“%AppData%\Local\Programs\n8n\resources\app\node_modules\n8n\bin\n8n.cmd” (not tested tho)