Updated Ionic CLI but previous version is displayed (Windows)

I want to update the Ionic CLI tool to the latest version (v1.3.13). I'm doing it:

npm update -g ionic

It seems to work. No errors, it receives all files successfully.

But - I do this:

ionic --version

And it shows the previous version! Why?

+2
source share
2 answers

It turns out that last year I installed Ionic, but locally.
I installed it in the C: \ Users \ myusername \ Documents \ Nodejs directory.

I deleted these files from this directory:

  • ionic
  • ionic.cmd

And this folder in the \ node -modules directory:

  • ionic

As soon as I did this, when I ran the command,

ionic --version

... - (AppData\Roaming\npm).

, Windows.

+3

bower.json bower update

"ionic": "driftyco/ionic-bower#1.1.0",
+2

Source: https://habr.com/ru/post/1629123/


All Articles