installing software on MacBook in /usr/bin I'm trying to install a set of software tools, the "PureScript compiler", on my Mac. I actually installed an older version with npm, like

sudo npm install -g purs


I need to get the latest version, and it seems to be available only as a direct download from here: https://github.com/purescript/purescript/releases and not yet available through npm. 

Right now, the old version of purs is in /usr/local/bin. Should I just download this new version and copy it there? Or is there a better way to install this?
You cannot install to /usr/bin because that directory is protected by SIP

However, /usr/local/ is not covered and you can write to that directory.   Using /usr/local/bin is perfectly fine for what you're attempting to do as it's both writeable and in your PATH environment variable.