Ionic CLI not getting Latest Version after npm install -g cordova ionic command[Solved]


#1

Hi,I am trying to update latest CLI version to avail the ionic serve --lab feature.But I am getting updated with 1.0.14 version.How to get current Latest Version.


#2

if ionic is already installed, try npm update -g ionic


#3

@harshitgoel96 I tried it now .See my log

C:\Windows\System32>npm update -g ionic
npm http GET https://registry.npmjs.org/ionic/latest
npm http 200 https://registry.npmjs.org/ionic/latest
npm http GET https://registry.npmjs.org/ionic
npm http 200 https://registry.npmjs.org/ionic
npm http GET https://registry.npmjs.org/ionic/-/ionic-1.2.13.tgz
npm http 200 https://registry.npmjs.org/ionic/-/ionic-1.2.13.tgz

C:\Windows\System32>ionic --version
Ionic CLI version 1.0.14

#4

its getting 1.2.13 which is the latest but not installing it…

whats the npm version ?


#5

Yes.it not installing .my npm Version is 1.3.26.


#6
  1. please update your nodejs, as in updated version on npm, the error handling is better
  2. uninstall the ionic npm package and install fresh.

#7

@harshitgoel96 .I updated the node js and updated the npm .Now I am getting the feature of ionic lab.Thanks for your support.


#8

Thanks for helping @hassaananjum