Bug Report #1674128069599

OS info

  • Operating System : Mac OSX 22.2.0
  • Wappler Version : 5.3.1

Problem description

Testing using local SQLite database in electron app.
After adding a query Wappler wants to install some dependancies but I get some Mac messages and the Node packages for electron fails.
Experimental options and Beta extensions enabled.

Steps to reproduce

  1. New mobile project.
  2. Add electron (I get the Mac errors but no others).
  3. Add a database.
  4. On a page add an app flow and a database query.
  5. Wappler tries to install electron again and fails.

I am assuming this is a permissions issue with Mac.

These are the Mac messages:
CleanShot 2023-01-19 at 11.32.19 CleanShot 2023-01-19 at 11.32.33 CleanShot 2023-01-19 at 11.32.52

This is the output after trying to install electron (and a system check afterwards):

Installing Node Packages for electron ...
Node Packages Installed Successfully!
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated asar@3.2.0: Please use @electron/asar moving forward.  There is no API change, just a package name change
npm WARN deprecated electron-osx-sign@0.5.0: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
npm WARN deprecated electron-rebuild@3.2.9: Please use @electron/rebuild moving forward.  There is no API change, just a package name change
npm ERR! code 1
npm ERR! path /Users/paul/Development/Wappler/reptilia/electron/node_modules/lzma-native
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@19.2.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.10.8 found at "/opt/homebrew/opt/python@3.10/bin/python3.10"
npm ERR! gyp info spawn /opt/homebrew/opt/python@3.10/bin/python3.10
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/paul/Development/Wappler/reptilia/electron/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/paul/Development/Wappler/reptilia/electron/node_modules/lzma-native/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/paul/Development/Wappler/reptilia/electron/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/paul/Library/Caches/node-gyp/19.2.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/paul/Library/Caches/node-gyp/19.2.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/paul/Development/Wappler/reptilia/electron/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/paul/Library/Caches/node-gyp/19.2.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/paul/Development/Wappler/reptilia/electron/node_modules/lzma-native',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: Call to 'sh liblzma-config.sh "/Users/paul/Development/Wappler/reptilia/electron/node_modules/lzma-native/build" "/Users/paul/Development/Wappler/reptilia/electron/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/Users/paul/Development/Wappler/reptilia/electron/node_modules/node-gyp/lib/configure.js:325:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 22.2.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/paul/Development/Wappler/reptilia/electron/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/paul/Development/Wappler/reptilia/electron/node_modules/lzma-native
npm ERR! gyp ERR! node -v v19.2.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/paul/.npm/_logs/2023-01-19T11_31_51_173Z-debug-0.log
Error Installing Node Packages for electron !

Checking NodeJS installation and version...
v19.2.0
NodeJS is correctly installed.

Checking Capacitor installation and version...
4.6.2
Capacitor is correctly installed.

System check successful!
If you are experiencing some build errors please make sure to check the Platform Guide for electron:
https://capacitor-community.github.io/electron/

report1674128068568.zip (242.8 KB)