Puppeteer - NodeJS 安装



Puppeteer 代码实现使用 JavaScript 完成。为此,需要安装 NodeJS,因为它是一个 JavaScript 引擎。只有在安装完成后,我们才能执行 Puppeteer 测试。

配置 NodeJS 的步骤如下所示:

步骤 1 - 启动具有以下链接的应用程序:

https://node.org.cn/en/download/

步骤 2 - 根据我们使用的本地操作系统(Windows、Mac 或 Linux),点击链接下载安装程序。

Installation of NodeJS

步骤 3 - 下载安装程序后,点击它。我们将导航到 Node.js 安装程序欢迎屏幕。点击继续。

Node.js Installer

步骤 4 - 同意 Nodejs 的条款协议。

Terms of Agreement of Nodejs

步骤 5 - 点击安装。

步骤 6 - 显示 Nodejs 安装成功消息后,点击关闭。

Success Message of Nodejs Installation

步骤 7 - 要检查 Nodejs 是否已成功安装,请打开终端并运行命令:node。

Nodejs is Installed Successfully

机器中安装的 Nodejs 版本应显示出来。

广告
© . All rights reserved.