@licity/qclaw-local-connector 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,6 +40,26 @@ npm install -g @licity/qclaw-local-connector
|
|
|
40
40
|
|
|
41
41
|
等待安装完成,看到 `added X packages` 字样即成功。安装过程中出现 `WARN` 字样是正常的,不影响使用。
|
|
42
42
|
|
|
43
|
+
> **⚠️ Windows PowerShell 提示"禁止运行脚本"怎么办?**
|
|
44
|
+
>
|
|
45
|
+
> 如果出现以下错误:
|
|
46
|
+
> ```
|
|
47
|
+
> npm : 无法加载文件 ...npm.ps1,因为在此系统上禁止运行脚本
|
|
48
|
+
> ```
|
|
49
|
+
> 原因是 Windows PowerShell 默认禁止运行第三方脚本。有两个解决方案:
|
|
50
|
+
>
|
|
51
|
+
> **方案 A(推荐):改用 cmd 而不是 PowerShell**
|
|
52
|
+
> - 按 `Win + R`,输入 `cmd` 回车,打开命令提示符(不是 PowerShell)
|
|
53
|
+
> - 在 cmd 里重新运行 `npm install -g @licity/qclaw-local-connector`
|
|
54
|
+
>
|
|
55
|
+
> **方案 B:修改 PowerShell 执行策略(需要管理员权限)**
|
|
56
|
+
> - 右键点击开始菜单 → 选择"Windows PowerShell(管理员)"或"终端(管理员)"
|
|
57
|
+
> - 在管理员 PowerShell 里输入:
|
|
58
|
+
> ```powershell
|
|
59
|
+
> Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
|
|
60
|
+
> ```
|
|
61
|
+
> - 按 `Y` 确认,然后重新运行安装命令
|
|
62
|
+
|
|
43
63
|
**第三步:创建工作目录**
|
|
44
64
|
|
|
45
65
|
在电脑上选一个记得住的文件夹作为工作目录。例如在桌面新建一个 `licity` 文件夹。
|
package/index.js
CHANGED