Installed ionic but giving error ionic command not found

Hi Team,

I already installed the ionic and cordova but its giving error that ionic command not found, i already remove the ionic and cordova and install again but still facing same issue.

i already tried to remove the node but still facing same issue, could any one please help me for resolving the issue.

MACPRO21:bin jitendra.naithani$ npm install -g ionic

npm WARN deprecated ionic@5.4.16: The Ionic CLI now uses :sparkles: @ionic/cli :sparkles: for its package name! :point_right: https://twitter.com/ionicframework/status/1223268498362851330

npm WARN deprecated superagent@4.1.0: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released.

/usr/local/bin/bin/ionic -> /usr/local/bin/lib/node_modules/ionic/bin/ionic

  • ionic@5.4.16

updated 1 package in 11.832s

MACPRO21:bin jitendra.naithani$ ionic info

-bash: ionic: command not found

As the message is telling you, the package has been renamed from ionic to @ionic/cli. Also, you would likely benefit from using nvm to manage your node installation.