You will likely need to do some more configuration if you are using brew. The most recommended way is to download it direct from nodejs.org and install it. leave all the default configuration, don't modify anything during installation and you have your nodejs set up on your system.