Ipfs: command not found

Does anyone know why my ipfs init and ipfs daemon commands aren’t working?

It says -bash: ipfs: command not found

It worked before, I’ve ipfs installed already, I already tried install it again doing npm i -g ipfs but the error remains.

I have never seen someone install ipfs that way.

Try installing it from https://dist.ipfs.io (you download the version for your platform and then run the install script)

I’ve downloaded through that link, it even identified a previous version (11) and upgraded to version 12. But the error remains the same when running ifps init.

Actually that command is used only to Go-IPFS, since I was using jsipfs I should use jsipfs init.