I already went into project properties > JavaScript > Include Path > Source and excluded my node_modules directory. But, when I run validation on the project it still tries to validate all of the javascript files in that folder.
It's because tern.java doesn't support include/exclude path.