Skip to content

build fail #88

@we-do-it-lu

Description

@we-do-it-lu

I read the README file and followed the instructions. I did
$ git clone https://github.com/ElementsProject/lightning-charge.git
$ cd lightning-charge
$ npm install
I see a lot of depricated warning messages then eventually an error related to sqlite3.
I try to run on laptop.
Thank you for your help.
3477 error path /Users/jay/github/lightning-charge/node_modules/lightning-charge/node_modules/sqlite3
3478 error command failed
3479 error command sh -c node-gyp rebuild
3480 error gyp info it worked if it ends with ok
3480 error gyp info using node-gyp@3.8.0
3480 error gyp info using node@17.8.0 | darwin | x64
3480 error (node:76096) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
3480 error (Use node --trace-deprecation ... to show where the warning was created)
3480 error gyp info spawn /usr/bin/python2
3480 error gyp info spawn args [
3480 error gyp info spawn args '/Users/jay/github/lightning-charge/node_modules/node-gyp/gyp/gyp_main.py',
3480 error gyp info spawn args 'binding.gyp',
3480 error gyp info spawn args '-f',
3480 error gyp info spawn args 'make',
3480 error gyp info spawn args '-I',
3480 error gyp info spawn args '/Users/jay/github/lightning-charge/node_modules/lightning-charge/node_modules/sqlite3/build/config.gypi',
3480 error gyp info spawn args '-I',
3480 error gyp info spawn args '/Users/jay/github/lightning-charge/node_modules/node-gyp/addon.gypi',
3480 error gyp info spawn args '-I',
3480 error gyp info spawn args '/Users/jay/.node-gyp/17.8.0/include/node/common.gypi',
3480 error gyp info spawn args '-Dlibrary=shared_library',
3480 error gyp info spawn args '-Dvisibility=default',
3480 error gyp info spawn args '-Dnode_root_dir=/Users/jay/.node-gyp/17.8.0',
3480 error gyp info spawn args '-Dnode_gyp_dir=/Users/jay/github/lightning-charge/node_modules/node-gyp',
3480 error gyp info spawn args '-Dnode_lib_file=/Users/jay/.node-gyp/17.8.0/<(target_arch)/node.lib',
3480 error gyp info spawn args '-Dmodule_root_dir=/Users/jay/github/lightning-charge/node_modules/lightning-charge/node_modules/sqlite3',
3480 error gyp info spawn args '-Dnode_engine=v8',
3480 error gyp info spawn args '--depth=.',
3480 error gyp info spawn args '--no-parallel',
3480 error gyp info spawn args '--generator-output',
3480 error gyp info spawn args 'build',
3480 error gyp info spawn args '-Goutput_dir=.'
3480 error gyp info spawn args ]
3480 error gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp
3480 error gyp ERR! configure error
3480 error gyp ERR! stack Error: gyp failed with exit code: 1
3480 error gyp ERR! stack at ChildProcess.onCpExit (/Users/jay/github/lightning-charge/node_modules/node-gyp/lib/configure.js:345:16)
3480 error gyp ERR! stack at ChildProcess.emit (node:events:527:28)
3480 error gyp ERR! stack at Process.ChildProcess.handle.onexit (node:internal/child_process:291:12)
3480 error gyp ERR! System Darwin 21.3.0
3480 error gyp ERR! command "/Users/jay/.nvm/versions/node/v17.8.0/bin/node" "/Users/jay/github/lightning-charge/node_modules/.bin/node-gyp" "rebuild"
3480 error gyp ERR! cwd /Users/jay/github/lightning-charge/node_modules/lightning-charge/node_modules/sqlite3
3480 error gyp ERR! node -v v17.8.0
3480 error gyp ERR! node-gyp -v v3.8.0
3480 error gyp ERR! not ok
3481 verbose exit 1
3482 timing npm Completed in 22429ms
3483 verbose unfinished npm timer reify 1648539874396
3484 verbose unfinished npm timer reify:build 1648539890540
3485 verbose unfinished npm timer build 1648539890542
3486 verbose unfinished npm timer build:deps 1648539890543
3487 verbose unfinished npm timer build:run:install 1648539890584
3488 verbose unfinished npm timer build:run:install:node_modules/lightning-charge/node_modules/sqlite3 1648539890621
3489 verbose code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions