File: /var/www/web.enelar.com.co/node_modules/nx/src/native/assert-supported-platform.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assertSupportedPlatform = void 0;
const output_1 = require("../utils/output");
function assertSupportedPlatform() {
try {
require('./index.js');
}
catch (e) {
let title = '';
let bodyLines = [];
if (process.platform == 'win32' ||
process.platform == 'darwin' ||
process.platform == 'linux' ||
process.platform == 'freebsd') {
title = 'Missing Platform Dependency';
bodyLines = [
`The Nx CLI could not find or load the native binary for your supported platform (${process.platform}-${process.arch}).`,
'This likely means that optional dependencies were not installed correctly, or your system is missing some system dependencies.',
];
if (process.env.NX_VERBOSE_LOGGING == 'true') {
bodyLines.push('', 'Additional error information:', e.message);
}
}
else {
title = 'Platform not supported';
bodyLines = [
`This platform (${process.platform}-${process.arch}) is currently not supported by Nx.`,
];
}
bodyLines.push('For more information please see https://nx.dev/recipes/troubleshooting/troubleshoot-nx-install-issues');
output_1.output.error({
title,
bodyLines,
});
process.exit(1);
}
}
exports.assertSupportedPlatform = assertSupportedPlatform;