1. 首先确保你的计算机上已经安装了最新版本的Google Chrome浏览器。如果没有,请访问Google Chrome官方网站(https://www.google.com/chrome/)下载并安装最新版本。
2. 打开命令提示符(Windows)或终端(macOS和Linux)。
3. 输入以下命令以安装Chrome浏览器的不同版本:
对于Windows系统:
cd /d %USERPROFILE%\AppData\Local\Google\Chrome
npm install -g chrome-installer
chrome-installer --version
对于macOS和Linux系统:
cd ~/Downloads/chrome-installer
npm install -g chrome-installer
chrome-installer --version
4. 等待安装过程完成。安装完成后,你将看到不同版本的Google Chrome浏览器已成功安装。
5. 若要启动特定版本的Chrome浏览器,可以在命令提示符或终端中输入以下命令:
对于Windows系统:
chrome-version-manager /install /path:C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
对于macOS和Linux系统:
chrome-version-manager /install /path:/usr/local/bin/google-chrome
6. 输入密码后,点击“确定”按钮,然后按回车键启动特定版本的Google Chrome浏览器。