For a successful upgrade, it is recommended not to skip any major version. That is, say you want to move from version
1.x.x to say
4.x.x, you need to traverse chronologically
4.x.x. Ideally, it's even better to make more granular steps, and not skip more than two minor versions at a time.