airterm 1.2.2 → 1.2.4
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 +14 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -413,12 +413,23 @@ 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[32mGreat, airterm is now installed.\x1B[0m");
|
|
421
|
+
console.log(
|
|
422
|
+
`Next time, just type \x1B[1m\x1B[36mairterm\x1B[0m.
|
|
423
|
+
`
|
|
424
|
+
);
|
|
425
|
+
} else {
|
|
426
|
+
console.log(
|
|
427
|
+
"Install may have failed. Try manually: npm install -g airterm\n"
|
|
428
|
+
);
|
|
429
|
+
}
|
|
419
430
|
} catch {
|
|
420
431
|
console.log(
|
|
421
|
-
"
|
|
432
|
+
"Install failed. Try manually: npm install -g airterm\n"
|
|
422
433
|
);
|
|
423
434
|
}
|
|
424
435
|
} else {
|