How to update Ionic CLI on visual studio code

i am using ionic by Visual Studio Code on Mac .
i save my file and start process “ionic serve” or “ionic build: android”.
Then it shows message that "update Ionic CLI - in stall in ? Y/n "

i press the Y , but it happens nothing.
how to install or update ionic CLI on visual studio code.
where do i press Y ?

Thanks.

You could update it outside visual code too

Open a terminal and run

 npm install -g ionic

this will install a/update the global ionic cli

then, once located in your project root, run

npm install ionic --save-dev

this will install the last ionic cli in your project as a dev dependency (should modify your package.json and package-lock.json)

Thank you for answering my question .
it Works !!! :slight_smile:

1 Like

Awesome :slight_smile:

Have fun!