I am doing some setup whcih required me to uninstall earlier node and npm setup, and install again using brew. But when i uninstalled it, and then installed it using brew install node, it gives me an error "bash: /usr/bin/npm: No such file or directory"
I uninstalled them once again, and when I type node (to see which path it is called in) I get, "bash: /home/username/.linuxbrew/bin/node: No such file or directory"
Whereas if I type npm I get, "bash: /usr/bin/npm: No such file or directory"
I think maybe the reason of error is this discrepancy in both the paths. Any suggestions on how to install it correctly using brew?