Since the daily development, part of the node version does not support, therefore, we need to unload heavy equipment installed on the node, follow these steps:
An input terminal following command sequence
sudo uninstall altitude above sea level -g
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
sudo rm -rf /usr/local/include/node /Users/$USER/.npm
sudo rm /usr/local/bin/node
sudo rm /usr/local/share/man/man1/node.1
sudo rm /usr/local/lib/dtrace/node.d
II. Verify successful
If you have the above code in order to perform it again, then we need to validate what we have not deleted successfully.
If the results show that we are about to delete a success.
node -v //not found
npm -v //not found
III. Then you can go to the official website to download the version we need
Official website link: http://nodejs.cn/download/
Note: When installing node path is recommended to choose the default path
Installed on a Mac computer node path:
This package has installed:
• Node.js v10.15.0 to /usr/local/bin/node
• altitude v6.4.1 is / usr / local / bin / above sea level
Make sure that /usr/local/bin is in your $PATH.