Adds node_modules to Synology Drive Client's blacklist filter for all sync sessions on Windows. Prevents node_modules from being synced across devices — run npm install on each device instead.
Double-click RUN ME.bat and follow the prompts.
- Finds your Synology Drive installation
- Asks for confirmation before making changes
- Stops Synology Drive
- Adds
node_modulesto the directory exclusion list for all sync sessions - Restarts Synology Drive
- Windows 10 or higher
- Synology Drive Client installed with at least one sync task configured
RUN ME.bat— Launcher, double-click to runsynology-exclude-node-modules.ps1— Script logic
- No admin privileges required
- Re-run after Synology Drive updates if the exclusion gets reset
- Safe to run multiple times — already excluded sessions are skipped