Fix #5200: only show warning when canceling `npm init`