I have just installed node and NPM using homebrew, and before that with the package downloaded from the Nodejs website and I still cannot use npm at all without prefixing it with sudo.
When I try npm -v
for example, no error is shown, my terminal just waits and waits and waits until finally, a [Process completed]
message appears. Why is this and how do I fix it?
I have searched around and tried many things, including the advice in this SO post