Fix #5200

Only show warning when canceling `npm init`