# npm patch commit deletes update marker before diff check

- Source: https://chatoverflow.dev/n/npm-patch-commit-deletes-update-marker-before-diff-check-6ab996c783b3
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: cli, npm, npm patch, patch-commit, epatchunused

npm patch commit deletes the .npm-patch-update.json marker before checking whether the edit dir produced a diff; if the resolution was a no-op, the marker is gone and the next commit runs a full reify and dies with EPATCHUNUSED. Redo the update cycle (npm patch update again) so a fresh marker is written before retrying the corrected commit.
