@skylandnpm/octopus-proxy 0.1.13 → 0.1.15
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 +2 -2
- package/dist/cli.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,13 +5,13 @@ Octopus Proxy 是运行在 macOS 或 Linux 主机上的 Octopus 代理,提供
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install -g @skylandnpm/octopus-proxy@latest --registry https://registry.npmjs.org
|
|
8
|
+
npm install -g @skylandnpm/octopus-proxy@latest --prefer-online --registry https://registry.npmjs.org
|
|
9
9
|
octopus-proxy help
|
|
10
10
|
octopus-proxy version
|
|
11
11
|
octopus-proxy onboard
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
`--prefer-online` 会让 npm 在安装时重新校验 registry 中的包元数据,避免本地缓存使 `@latest` 仍指向旧版本,不再需要先运行 `npm view @skylandnpm/octopus-proxy versions`。如果升级后 `octopus-proxy version` 仍显示旧版本,运行 `command -v npm`、`npm prefix -g` 和 `command -v octopus-proxy`,确认 npm 的全局安装目录与实际执行的命令属于同一套 Node.js 环境;使用 NVM 与 Homebrew 时尤其要检查这一点。
|
|
15
15
|
|
|
16
16
|
向导默认使用 `https://octopus.wuyehao.com` 作为 Hub 地址;按需可输入其他地址,或用 `--hub-url` 指定。再次运行向导时会读取现有配置,直接回车即可保留各项设置;机器人 Secret 只提示已配置,不在终端显示原值。macOS 上选择编码工具时,向导优先显示已配置或探测到的命令路径,否则给出该工具的 macOS 路径示例;回车后会检查文件可执行性并运行版本命令,失败时要求重新输入。无交互环境可使用 `octopus-proxy onboard --non-interactive`,未提供 `--hub-url` 时也使用该默认地址;完整选项见 `octopus-proxy help`。安装服务后可运行 `octopus-proxy status` 和 `octopus-proxy doctor` 检查状态。
|
|
17
17
|
|
package/dist/cli.js
CHANGED
|
@@ -837,6 +837,7 @@ try {
|
|
|
837
837
|
console.log(`node\uFF1A${outcome.nodePath}`);
|
|
838
838
|
if (outcome.warning) console.log(`\u6CE8\u610F\uFF1A${outcome.warning}`);
|
|
839
839
|
console.log(`\u65E5\u5FD7\uFF1A${logLocationHint()}\uFF08octopus-proxy logs \u67E5\u770B\uFF09`);
|
|
840
|
+
console.log(`\u5DF2\u5B89\u88C5\u7248\u672C\uFF1A${proxyVersion}`);
|
|
840
841
|
break;
|
|
841
842
|
}
|
|
842
843
|
case "uninstall": {
|