@ionic/cli not installed after installing

599 views Asked by At

I tried to update my ionic cli by removing the ionic package and replacing it with @ionic/cli, but now ionic is no longer a recognized command. Here's what I've tried so far:

Node version - v13.13.0 npm version - 6.13.4

  1. exporting prefix to $PATH,

    prefix - /usr/local

    $path - /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:...

    npm root -g returns /usr/local/lib/node_modules

  2. brew doctor, brew upgrade node,

  3. npm update -g verbose, npm cache clean --force

Every time I run npm i -g ionic or npm i -g @ionic/cli the installation is successful, but I cannot use ionic commands. Any idea on why this is?

npm install -g @ionic/cli --verbose begin installation directory in installation

0

There are 0 answers