2021 Mac OS install node

Prerequisite: It has been installed brew, if not, you can read the previous article Mac OS (forced by helplessness) The complete and successful process of first installing brew (pit mining)

Installing node is very simple, the steps are as follows:

  • Downloading: During brew install node
    Insert picture description here
    this process, brew cleanupthe cache was automatically cleaned up for me.

  • Check the download status: node -vandnpm -v
    Insert picture description here

  • Download Taobao mirror installation: npm install -g cnpm --registry=https://registry.npm.taobao.org
    (If the permission is not enough, remember to add it at the beginning of the code sudo)
    Insert picture description here

Finish the installation!

Guess you like

Origin blog.csdn.net/Robin_Pi/article/details/114538459