I have mac 10.6.8 and I installed node 10.15.3 from nodejs.org using pkg installer and after installing I got this problem when I try to use 'node' or 'npm' on the terminal:
dyld: Library not loaded: /usr/lib/libc++.1.dylib Referenced from: /usr/local/bin/node Reason: image not found
Moreover, when I try brew 'doctor', this is what I see:
Unbrewed header files were found in /usr/local/include. If you didn't put them there on purpose they could cause problems when building Tigerbrew formulae, and may need to be deleted. Unexpected header files: /usr/local/include/node/libplatform/libplatform-export.h /usr/local/include/node/libplatform/libplatform.h /usr/local/include/node/libplatform/v8-tracing.h /usr/local/include/node/node.h ..............................
(huge list of heades files from /usr/local/include/node/ and other subfolders)