diff --git a/lib/handler.js b/lib/handler.js index ffa9e80..daed0ee 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 });