From a6d997631a0fe3136e7d64554189ff80d7ae512d Mon Sep 17 00:00:00 2001 From: annomel <85354299+annomel@users.noreply.github.com> Date: Fri, 4 Jun 2021 20:18:58 +0600 Subject: [PATCH] Changed os.tempDir() to os.tempdir() I tried this with node v14.17.0 after downloading I got os.tempDir() is not a function after finding at stack overflow i made this minor change and app worked without an error. Thank you. stackoverflow.com/questions/62163677/why-does-calling-os-tmpdir-produce-an-error-on-only-some-machines --- internal/fontello/font_build/font_build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fontello/font_build/font_build.js b/internal/fontello/font_build/font_build.js index c04d6091..6eaa8548 100644 --- a/internal/fontello/font_build/font_build.js +++ b/internal/fontello/font_build/font_build.js @@ -72,7 +72,7 @@ module.exports = function (N, apiPath) { clientConfig: data.config, builderConfig, cwdDir: N.mainApp.root, - tmpDir: path.join(os.tmpDir(), 'flutter-icons', `flutter-icons-${data.fontId.substr(0, 8)}`), + tmpDir: path.join(os.tmpdir(), 'flutter-icons', `flutter-icons-${data.fontId.substr(0, 8)}`), timestamp: Date.now(), result: null, logger