A stale or slightly out of date `node_modules` folder can cause upgrade process to fail. Running prune and install fixes the issue.