From ff365161f21fd360407c8b90265dce9d63c9ac0e Mon Sep 17 00:00:00 2001 From: Heath123 Date: Sun, 20 Dec 2020 21:38:57 +0000 Subject: [PATCH] I think it works now --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a64aff3..22c4876 100644 --- a/src/index.js +++ b/src/index.js @@ -24,7 +24,7 @@ try { setupDataFolder = require('./setupDataFolder.js') } catch (err) { console.log('err', err.message) - if (err.message.includes('The specified module could not be found.')) { + if (err.message.includes('The specified module could not be found.') || err.message.includes('Cannot find module')) { console.log('fix!!!') if (!fs.existsSync(resourcesPath + 'flag_java_fixed.txt')) { fs.openSync(resourcesPath + 'flag_java_fixed.txt', 'w')