Skip to content

Commit

Permalink
fix: npm 8 does not install plugin dependencies (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed May 20, 2022
1 parent d6d3d41 commit 87960a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit 87960a1

Please sign in to comment.