I just downloaded Sencha cmd. I have followed all of the instructions for downloading the pre-requisites.

When I try to generate an app, it tells me
Sencha Cmd v5.0.1.231
[ERR] Cannot find file: C:\Program Files\SenchaCmd\Sencha\Cmd\repo\.sencha\codeg
The application was last modified by an older version of Sencha Cmd (
the current is
Please run "sencha package upgrade" to update to
There is no repo directory.

When I run sencha package upgrade, it says the same error.

Have I missed a step as I have followed the instructions?