I could install ionic and cordova. but command error. why?

/ (741) : sudo npm install ionic cordova -g
npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
/npm/bin/cordova -> /npm/lib/node_modules/cordova/bin/cordova
/npm/bin/ionic -> /npm/lib/node_modules/ionic/bin/ionic

  • cordova@8.0.0
  • ionic@4.0.2
    added 674 packages in 19.342s
    / (742) : ionic -v
    -bash: ionic: command not found

npm i ionic

npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at leas
t 2.1.6 to avoid a serious bug with socket data flow and an import issue introdu
ced in 2.1.0

Realy we need a solution for this , i have the same issue

I’ve faced this issue also. Is anyone can help on it.