From 3fe209a10088c6a89f26eb7948d3e57fe7b51735 Mon Sep 17 00:00:00 2001 From: Yangzheng <36978600+YangZhengCQ@users.noreply.github.com> Date: Fri, 12 Jan 2024 22:25:04 +0800 Subject: [PATCH] Updated usage tutorial for Windows system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新了 Windows 系统下的操作教程 --- README.md | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 630ef352..7e50cfe6 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ yarn make:enjoy #### * 普通小白用户 -最直接的方法是去 [releases 页面](https://github.com/xiaolai/everyone-can-use-english/tags)下载相应的安装文件。 +方法一:这是**最直接简单的方法**是去 [releases 页面](https://github.com/xiaolai/everyone-can-use-english/tags)下载相应的安装文件。 -如果想要随时试用更新版本的话,请按一下步骤操作。 +方法二:如果想要随时**试用更新版本**的话,请按一下步骤操作。 ##### MacOS 用户 @@ -54,6 +54,7 @@ yarn make:enjoy ```bash cd ~ mkdir github + cd github git clone https://github.com/xiaolai/everyone-can-use-english cd everyone-can-use-english yarn install @@ -62,4 +63,56 @@ yarn make:enjoy ##### Windows 用户 -(我没有 Windows 机器…… 请使用 Windows 的高级用户写个 “小白指南”,然后提交 pull request —— 谢谢!) +系统要求:Windows 10 22H2 以上版本、 [Windows PowerShell 5.1](https://aka.ms/wmf5download) 以上版本、互联网网络连接正常。 + +1. 将鼠标移至任务栏的 “Windows 徽标” 上单击右键,选择 “PowerShell” + + > tips 1 :在最新的 Windows 11 上,你看不到 “PowerShell” 选项,只有 “终端” + > + > tips 2 :不能用管理员权限运行 PowerShell ,否则会导致 Scoop 安装失败 + +2. 在弹出的 PowerShell 窗口中依次执行运行以下命令,安装Scoop: + + ```powershell + # 设置 PowerShell 执行策略 + Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser + # 下载安装脚本 + irm get.scoop.sh -outfile 'install.ps1' + # 执行安装, --ScoopDir 参数指定 Scoop 安装路径 + .\install.ps1 -ScoopDir 'C:\Scoop' + ``` + + 如果出现下面的错误: + + > irm : 未能解析此远程名称: 'raw.githubusercontent.com' + + 说明你的**网络连接**有问题,请自行研究解决: + +3. 安装 Nodejs 和 yarn 以及其他依赖环境 : + + ```powershell + scoop install nodejs + scoop install git + npm install yarn -D + ``` + +4. 克隆此仓库至本地,而后安装 Enjoy APP: + + ```powershell + cd ~ + mkdir github + cd github + git clone https://github.com/xiaolai/everyone-can-use-english + cd everyone-can-use-english + cd enjoy + yarn install + yarn start:enjoy + ``` + + 出现 `Completed in XXXXXXXXXX` 类似字样说明安装成功! + +5. 运行 Enjoy APP ,在终端执行下列命令: + + ```powershell + yarn start:enjoy + ```