Update cause the working system collapsed.. why?


I am working in ionic 3.9.1 . Accidently i allow upgrade and now i got error as

bash: /usr/bin/ionic: No such file or directory

Please help .

I installed old version , but still the problem

My OS is ubuntu 16.04

please help


Did you tried re-installing ionic globally again?
Using npm uninstall -g ionic and then npm i -g ionic

May i use sudo option ??

Done installation

user@acer:~$ sudo npm install -g cordova ionic
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/ionic/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ cordova@8.0.0
+ ionic@3.19.1
updated 2 packages in 264.441s

but still show

user@acer:~/dreamhouse-mobile-ionic$ ionic info
bash: /usr/bin/ionic: No such file or directory

please help