@hermespilot/link 0.5.1 → 0.5.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 +8 -2
- package/dist/{chunk-PULX22HX.js → chunk-DZMN5RIV.js} +1553 -1912
- package/dist/cli/index.js +1508 -41
- package/dist/http/app.js +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.mjs +6 -0
package/dist/http/app.js
CHANGED
package/package.json
CHANGED
package/scripts/postinstall.mjs
CHANGED
|
@@ -99,9 +99,12 @@ async function main() {
|
|
|
99
99
|
console.log(
|
|
100
100
|
`如果当前 shell 找不到 \`hermeslink\`,说明 npm 全局 bin 目录没有进 PATH:${globalBinDir}`,
|
|
101
101
|
);
|
|
102
|
+
console.log("你也可以先运行不依赖 PATH 的诊断:npx --yes @hermespilot/link doctor --install");
|
|
102
103
|
console.log(`你可以直接运行:${commandPath} pair`);
|
|
103
104
|
if (process.platform !== "win32") {
|
|
104
105
|
console.log(`或者先补 PATH:export PATH="${globalBinDir}:$PATH"`);
|
|
106
|
+
} else {
|
|
107
|
+
console.log(`或者把这个目录加入当前用户的 Path,然后重新打开终端:${globalBinDir}`);
|
|
105
108
|
}
|
|
106
109
|
}
|
|
107
110
|
} else {
|
|
@@ -111,9 +114,12 @@ async function main() {
|
|
|
111
114
|
console.log(
|
|
112
115
|
`If your shell cannot find \`hermeslink\`, npm's global bin directory is not on PATH: ${globalBinDir}`,
|
|
113
116
|
);
|
|
117
|
+
console.log("You can run a PATH-independent diagnostic first: npx --yes @hermespilot/link doctor --install");
|
|
114
118
|
console.log(`You can run it directly: ${commandPath} pair`);
|
|
115
119
|
if (process.platform !== "win32") {
|
|
116
120
|
console.log(`Or add it to PATH first: export PATH="${globalBinDir}:$PATH"`);
|
|
121
|
+
} else {
|
|
122
|
+
console.log(`Or add this directory to your user Path, then open a new terminal: ${globalBinDir}`);
|
|
117
123
|
}
|
|
118
124
|
}
|
|
119
125
|
}
|