airterm 1.2.2 → 1.2.3
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/dist/cli.js +15 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -413,12 +413,24 @@ function Connecting({ code, connection, onError }) {
|
|
|
413
413
|
console.log("");
|
|
414
414
|
try {
|
|
415
415
|
execFileSync("npm", ["install", "-g", "airterm"], {
|
|
416
|
-
stdio: "
|
|
416
|
+
stdio: "pipe"
|
|
417
417
|
});
|
|
418
|
-
|
|
418
|
+
const installed = isGloballyInstalled();
|
|
419
|
+
if (installed) {
|
|
420
|
+
console.log("\x1B[32mInstalled.\x1B[0m");
|
|
421
|
+
console.log(
|
|
422
|
+
`
|
|
423
|
+
Next time, just type \x1B[1m\x1B[36mairterm\x1B[0m.
|
|
424
|
+
`
|
|
425
|
+
);
|
|
426
|
+
} else {
|
|
427
|
+
console.log(
|
|
428
|
+
"Install may have failed. Try manually: npm install -g airterm\n"
|
|
429
|
+
);
|
|
430
|
+
}
|
|
419
431
|
} catch {
|
|
420
432
|
console.log(
|
|
421
|
-
"
|
|
433
|
+
"Install failed. Try manually: npm install -g airterm\n"
|
|
422
434
|
);
|
|
423
435
|
}
|
|
424
436
|
} else {
|