How to downgrade local packages?


#1

I’m working with the Super-tabs plugin

but this plugin has a bug with ionic 3.8.0.
Heres the issue

I know that this plugin works great with ionic 3.7.0 so a wanted to downgrade to keep working. I used npm install -g ionic@3.7.0 command but this downgrades the general ionic version, not the project one.

cli packages: (C:\Users\Usuario\Documents\Vortex\Buy-Me2\node_modules)

    @ionic/cli-utils  : 1.15.2
    ionic (Ionic CLI) : 3.15.2

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.3.0
    Ionic Framework    : ionic-angular 3.7.1

System:

    Node : v8.4.0
    npm  : 5.3.0
    OS   : Windows 10

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : legacy

How can I downgrade the project ionic version?


#2

You should just be able to do npm install ionic@3.7.0.

The -g is the global argument, so I’d imagine just removing it would make it work with local packages.


#3

That command only downgrades the Ionic CLI I need to downgrade the Ionic Framework


#4

Whoops. You are correct. My bad!

ionic-angular is the package you’ll want to downgrade.
npm i ionic-angular@3.7.0


#5

@cafej

The author has been updated and is now available for version 3.8


#6

This made it work. Thanks