Ionic upload - Typeerror: env.runcmd is not a function

When I run the ionic upload command I am getting the above result.

Any ideas?

global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 7.0.1 
    Gulp CLI         : not installed globally
    Ionic CLI        : 3.4.0

local packages:

    Cordova Platforms : android 6.2.3
    Ionic Framework   : ionic1 1.3.1


    Node       : v7.0.0
    OS         : Linux 4.4
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 3.10.8 

This is pretty old, please upgrade to a recent version.

Also post the complete error message - you only mentioned a not very relevant part of the error message.
Run the same ocmmand with --verbose at the end to maybe get more output.

Thanks @Sujan12 I fixed it by upgrading and then setting legacy mode.

I am currently organising a Pro account.