Puppeteer 简明教程
Puppeteer - NodeJS Installation
Puppeteer 代码实现是使用 JavaScript 完成的。为此,必须安装 NodeJS,因为它是 JavaScript 引擎。只有在安装后,我们才能执行 Puppeteer 测试。
Puppeteer code implementation is done using JavaScript. For this, NodeJS has to be installed since it is a JavaScript engine. Only after its installation, we can execute Puppeteer tests.
配置 NodeJS 的步骤如下 −
The steps to configure NodeJS are listed below −
Step 1 − 启动具有以下链接的应用程序 −
Step 1 − Launch the application having the below link −
Step 2 − 根据我们使用的本地操作系统(Windows、Mac 或 Linux),单击链接下载安装程序。
Step 2 − As per the local operating system (Windows, Mac or Linux) we are using, click on the link to download the Installer.

Step 3 − 安装程序下载完毕后,单击它。我们将导航到 Node.js 安装程序欢迎界面。单击继续。
Step 3 − Once the installer is downloaded, click on it. We shall be navigated to the Node.js Installer welcome screen. Click on Continue.

Step 4 − 同意 Nodejs 的协议条款。
Step 4 − Agree to the terms of agreement of Nodejs.

Step 5 - 点击安装。
Step 5 − Click on Install.
Step 6 − 一旦显示 Nodejs 安装成功的消息,单击关闭。
Step 6 − Once the success message of Nodejs installation is displayed, click on Close.

Step 7 − 要检查 Nodejs 是否成功安装,请打开终端并运行命令:node。
Step 7 − To check if Nodejs is installed successfully, open the terminal and run the command: node.

应显示机器中安装的 Nodejs 版本。
The version of the Nodejs installed in the machine should get displayed.