How to solve the problem?

  node.js, question

The computer is OS X version 10.11.2

On a whim, i want to update node.js
In the command line inside input (Baidu to method):

sudo npm install -g n

Then input againsudo n stable
Then the command line inside began to display the percentage, slowly changing from 1% to 100%. I thought the update was finished and the result was. .
Enter node -v display:

dyld: Symbol not found:
 Referenced from: /usr/local/bin/node
 Expected in: /usr/lib/libstdc plus.6.dylib
 Trace/BPT trap: 5

The input npm -v is also displayed in this way. In short, node, npm will prompt the string above as soon as it is input.
Beginners, very distressed, ask for answers, thank you very much.

The version of node you updated may not match the version of your OSX, so there is a problem with the C library. It is recommended to reinstall node.