amis-rpc-design/node_modules/@react-native-community/cli-doctor/build/tools/install.js
2023-10-07 19:42:30 +08:00

36 lines
681 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.install = install;
var _brewInstall = require("./brewInstall");
var _common = require("./healthchecks/common");
async function install({
pkg,
label,
url,
loader
}) {
try {
switch (process.platform) {
case 'darwin':
await (0, _brewInstall.brewInstall)({
pkg,
label,
loader
});
break;
default:
throw new Error('Not implemented yet');
}
} catch (_error) {
loader.fail();
(0, _common.logManualInstallation)({
healthcheck: label,
url
});
}
}
//# sourceMappingURL=install.ts.map