Use execSync module to replace exec-sync.