The replace itself failed, after the new binary was downloaded and verified. Carries the recovery path when the old binary had to be moved aside first.
import * as Install from './install.ts'; Install.ReplaceFailed({ target: '/opt/qunitx/qunitx', reason: 'EPERM' }).code; // 'UpgradeReplaceFailed'