(MACOS) Download node14 through terminal

The first step is to download homebrew

1) Open the terminal and enter the code

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

(If there is no connection failure) Second method, enter the code: (Visit the domestic mirror version)

/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/Homebrew/install/install.sh)"

----------------------------------------Waiting to download homebrew-------- -----------------------

  

2) At this time, enter the password + press Enter and wait. Homebrew downloads successfully as shown below.

3) Check version number

 

 

The second step is to download node14

Enter the code as follows:

brew install node@14

Waiting for download.

 Display prompt information:

If you need to use node14 please enter the following code.

The third step is to enter the code because I need to use node14.

Application: Using scaffolding in vscode

1) Enter the code as follows:

npm i
npm run serve

 2) Access the address and use scaffolding successfully.

Guess you like

Origin blog.csdn.net/weixin_67225910/article/details/131663483