Great reference document: http://antimatrix.org/BTSync/Documentation/BTSync_Notes.html#Using_SyncIgnore_file
You should use either of these to ignore node_modules:
# ignore node_modules on every level in hierarchy node_modules # ignore node_modules only on the second level /*/node_modules