npm version: handle checkGit errors