6

I need to stop Ionic CLI from checking for updates whenever I run an ionic command. This prevents me from even running the app offline. An illustration is as :

C:\Users\TO-004\Desktop\EzyMarketplace\EzyExtension-App-2017-master>ionic serve ? The Ionic CLI has an update available (3.3.0 => 3.4.0)! Would you like to install it? (Y/n)

yannis
  • 6,215
  • 5
  • 39
  • 49
Raphael
  • 291
  • 1
  • 3
  • 16

5 Answers5

4

Ionic seems to compare the release date by the timestamp of "lastCommand" in ~/.ionic/config.json. If that date is later than the release date it will not ask you the question.

Just change the timestamp to a future date, not an ideal solution but it seems to work.

yannis
  • 6,215
  • 5
  • 39
  • 49
Ratler
  • 41
  • 2
4

In 3.5.0 you can turn off the CLI's interactive mode by either using the --no-interactive flag or by manually setting cliFlags.interactive to false in ~/.ionic/config.json.

yannis
  • 6,215
  • 5
  • 39
  • 49
  • Out of curiosity, how can you hide only one site (MSE) from your profile but not others? – iBug Sep 26 '17 at 12:01
  • @iBug There's a "Hide Communities" option (under "Site Settings") when editing your profile. – yannis Sep 26 '17 at 12:03
3

My problem resolved with:

ionic --no-interactive -v
lady
  • 356
  • 1
  • 2
  • 14
0

You can change definitely by setting daemon.updates to false in ~/.ionic/config.json

michaelitoh
  • 2,317
  • 14
  • 26
0

You can change definitely by setting daemon.updates to false in ~/.ionic/config.json.

ex.

{
   ....
   "daemon" :{
      "updates": false
    }    
    ...
}
michaelitoh
  • 2,317
  • 14
  • 26