Cli: Resolves #1905: Add support to Termux by returning a default when platform name cannot be determined

pull/1911/head
Laurent Cozic 2019-09-27 22:18:22 +01:00
parent 58e299383d
commit 8565cd7d40
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ shim.platformName = function() {
if (shim.isWindows()) return 'win32';
if (shim.isLinux()) return 'linux';
if (shim.isFreeBSD()) return 'freebsd';
if (process && process.platform) return process.platform;
throw new Error('Cannot determine platform');
};