Closed Jytesh closed 1 year ago
npm ERR! code 1 npm ERR! path /home/jitesh_u/Documents/Javascript/keyv/packages/sqlite/node_modules/sqlite3 npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/home/jitesh_u/Documents/Javascript/keyv/packages/sqlite/node_modules/sqlite3/build' npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o npm ERR! AR(target) Release/obj.target/../node-addon-api/nothing.a npm ERR! COPY Release/nothing.a npm ERR! ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3360000/sqlite3.c npm ERR! make: Leaving directory '/home/jitesh_u/Documents/Javascript/keyv/packages/sqlite/node_modules/sqlite3/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@16.13.2 | linux | x64 npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/jitesh_u/.volta/tools/image/node/16.13.2/lib/node_modules/npm/node_modules/@npmcli/run-script/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 '/home/jitesh_u/Documents/Javascript/keyv/packages/sqlite/node_modules/sqlite3/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/jitesh_u/.volta/tools/image/node/16.13.2/lib/node_modules/npm/node_modules/@npmcli/run-script/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/jitesh_u/.cache/node-gyp/16.13.2/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=/home/jitesh_u/.cache/node-gyp/16.13.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/jitesh_u/.volta/tools/image/node/16.13.2/lib/node_modules/npm/node_modules/@npmcli/run-script/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/jitesh_u/.cache/node-gyp/16.13.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/jitesh_u/Documents/Javascript/keyv/packages/sqlite/node_modules/sqlite3', 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 info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! /bin/sh: 1: python: not found npm ERR! make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3360000/sqlite3.c] Error 127 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/jitesh_u/.volta/tools/image/node/16.13.2/lib/node_modules/npm/node_modules/@npmcli/run-script/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Linux 5.10.93.2-microsoft-standard-WSL2 npm ERR! gyp ERR! command "/home/jitesh_u/.volta/tools/image/node/16.13.2/bin/node" "/home/jitesh_u/.volta/tools/image/node/16.13.2/lib/node_modules/npm/node_modules/@npmcli/run-script/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/jitesh_u/Documents/Javascript/keyv/packages/sqlite/node_modules/sqlite3 npm ERR! gyp ERR! node -v v16.13.2 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /home/jitesh_u/.npm/_logs/2022-03-10T18_06_42_144Z-debug.log
Ubuntu 20
Please use https://github.com/TryGhost/node-sqlite3 and ask for support there. This fork is intended to be only used with VS Code.
Ubuntu 20