From fa51d19c0022b62c4c8b9ac62047601f0385f9ea Mon Sep 17 00:00:00 2001 From: Erisu Date: Thu, 19 May 2022 20:49:49 +0900 Subject: [PATCH] fix: npm 8 does not install plugin dependencies --- lib/handler.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/handler.js b/lib/handler.js index ffa9e801..daed0ee4 100644 --- a/lib/handler.js +++ b/lib/handler.js @@ -117,6 +117,12 @@ module.exports = { const wwwDir = path.join(project_dir, 'www'); + // First: Install the Cordova Electron plugin dependencies + execa('npm', ['install'], { + cwd: electronPluginSrc + }); + + // Second: Install the Cordova Electron plugin to the Electron app scope. (npm 8 creates symlink) execa('npm', ['install', electronPluginSrc], { cwd: wwwDir });