You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2022/05/20 12:50:45 UTC

[cordova-electron] branch master updated: fix: npm 8 does not install plugin dependencies (#229)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-electron.git


The following commit(s) were added to refs/heads/master by this push:
     new 87960a1  fix: npm 8 does not install plugin dependencies (#229)
87960a1 is described below

commit 87960a12c33aa9850549c29a0a4257671a0c2e21
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Fri May 20 21:50:40 2022 +0900

    fix: npm 8 does not install plugin dependencies (#229)
---
 lib/handler.js | 6 ++++++
 1 file changed, 6 insertions(+)

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
             });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org