Closed nirajhinge closed 2 years ago
@nirajhinge I have no idea i use
node v14.15.04
npm v7.6.0
and it is working well@jepiqueau Just installed using node v14.17.0
and npm v6.14.13
with nvm and it is working. Looks like a wider node-gyp
issue with node v16
.
@nirajhinge Are you working on Mac or Windows. As i do not want to mess up my development platform Mac i am trying to test it on Windows
@jepiqueau I am on a Mac.
@nirajhinge i messed up my windows platform in trying to upgrade to the latest version of nodejs and npm so i can install but i cannot rebuild electron anymore with a GYP error. even when coming back to the previous release it does not work anymore. So i cannot really help as i do not want to mess up my Mac.
4004 error gyp ERR! node-gyp -v v3.8.0
The current release of node-gyp can be found at https://github.com/nodejs/node-gyp/releases Please upgrade using https://github.com/nodejs/node-gyp/blob/master/docs/Updating-npm-bundled-node-gyp.md
@cclauss
i am still stuck with this issue on Windows.
i update node to v17.1.0
and npm to 8.1.4
and installed the tools needed by nodejs so i got Python version 3.10.0 and Microsoft VisualStudio 2019 BuildTools i also updated node-gyp to v8.4.1 but when i try to do npm run build
in the electron folder i got the following error
npm run build
> vue-sqlite-app-starter@1.0.0 build
> tsc && electron-rebuild
| Building module: sqlite3, Completed: 0gyp info find Python using Python version 3.10.0 found at "C:\Python310\python.exe"
| Building module: sqlite3, Completed: 0gyp info find VS using VS2019 (16.11.31911.196) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp info find VS run with --verbose for detailed information
(node:22076) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp info spawn C:\Python310\python.exe
gyp info spawn args [
gyp info spawn args 'F:\\developement\\vue-sqlite-app-starter\\electron\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'F:\\developement\\vue-sqlite-app-starter\\electron\\node_modules\\sqlite3\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'F:\\developement\\vue-sqlite-app-starter\\electron\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Jean-Pierre\\.electron-gyp\\13.6.2\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Jean-Pierre\\.electron-gyp\\13.6.2',
gyp info spawn args '-Dnode_gyp_dir=F:\\developement\\vue-sqlite-app-starter\\electron\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Jean-Pierre\\\\.electron-gyp\\\\13.6.2\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=F:\\developement\\vue-sqlite-app-starter\\electron\\node_modules\\sqlite3',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'F:\\developement\\vue-sqlite-app-starter\\electron\\node_modules\\sqlite3\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
/ Building module: sqlite3, Completed: 0gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
× Rebuild Failed
An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild 'F:\developement\vue-sqlite-app-starter\electron\node_modules\sqlite3'.
Error: `gyp` failed with exit code: 1
Error: node-gyp failed to rebuild 'F:\developement\vue-sqlite-app-starter\electron\node_modules\sqlite3'.
Error: `gyp` failed with exit code: 1
at ModuleRebuilder.rebuildNodeGypModule (F:\developement\vue-sqlite-app-starter\electron\node_modules\electron-rebuild\lib\src\module-rebuilder.js:193:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Rebuilder.rebuildModuleAt (F:\developement\vue-sqlite-app-starter\electron\node_modules\electron-rebuild\lib\src\rebuild.js:190:9)
at async Rebuilder.rebuild (F:\developement\vue-sqlite-app-starter\electron\node_modules\electron-rebuild\lib\src\rebuild.js:152:17)
at async F:\developement\vue-sqlite-app-starter\electron\node_modules\electron-rebuild\lib\src\cli.js:146:9
Any idea to help me
@cclauss thanks, i already look at this without success
Sorry. I do not do Windows.
I am not sure if this is an issue with the package or if there is some maximum/minimum node/npm we can use to try this out but I have tried to install this on
node -v v16.5.0
andnode -v v16.3.0
on multiple machines (Intel based and M1) but I get the exact same error (the entire output is attached below). I have tried a few things such as the steps mentioned here but still can't seem to completenpm install
and fails with the same error as follows:Is there a minimum requirements to run this demo or is this more of a
node-gyp
or individual machine issue?