(MACOS) Use docker to install node14

The first step is to download docker from the docker official website and enter the following code to pull the dependencies of node:14.

(Just wait for downloading)

docker pull node:14

Step 2: After the pull is successful, run the code to create a new container in docker and start it.

docker run -it --name mynodeapp node:14 /bin/bash

(Now you have entered the node interface)

Enter the code to test: (Pressing Enter will run the code, and the interface will display Hello, World! )

console.log("Hello, World!");

 

Guess you like

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