In a project that has unsaved changes not commited to git, npm version patch will error and complain Git working directory not clean. This is good as i
npm version patch
Git working directory not clean.