Hi all,
when i cd into the example_backend folder and ran npm install, the following appeared :
$ npm install
sqlite3@4.1.1 install /Users/erictan86/Documents/example_backend/node_modules/sqlite3
node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.1.1 and node@14.15.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
No receipt for ācom.apple.pkg.CLTools_Executablesā found at ā/ā.
No receipt for ācom.apple.pkg.DeveloperToolsCLILeoā found at ā/ā.
No receipt for ācom.apple.pkg.DeveloperToolsCLIā found at ā/ā.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command ā/usr/local/bin/nodeā ā/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.jsā āconfigureā āāfallback-to-buildā āāmodule=/Users/erictan86/Documents/example_backend/node_modules/sqlite3/lib/binding/node-v83-darwin-x64/node_sqlite3.nodeā āāmodule_name=node_sqlite3ā āāmodule_path=/Users/erictan86/Documents/example_backend/node_modules/sqlite3/lib/binding/node-v83-darwin-x64ā āānapi_version=7ā āānode_abi_napi=napiā āānapi_build_version=0ā āānode_napi_label=node-v83ā
gyp ERR! cwd /Users/erictan86/Documents/example_backend/node_modules/sqlite3
gyp ERR! node -v v14.15.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ā/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/erictan86/Documents/example_backend/node_modules/sqlite3/lib/binding/node-v83-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/erictan86/Documents/example_backend/node_modules/sqlite3/lib/binding/node-v83-darwin-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83ā (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/erictan86/Documents/example_backend/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Darwin 19.6.0
node-pre-gyp ERR! command ā/usr/local/bin/nodeā ā/Users/erictan86/Documents/example_backend/node_modules/.bin/node-pre-gypā āinstallā āāfallback-to-buildā
node-pre-gyp ERR! cwd /Users/erictan86/Documents/example_backend/node_modules/sqlite3
node-pre-gyp ERR! node -v v14.15.1
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute ā/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/erictan86/Documents/example_backend/node_modules/sqlite3/lib/binding/node-v83-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/erictan86/Documents/example_backend/node_modules/sqlite3/lib/binding/node-v83-darwin-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83ā (1)
npm WARN example_backend@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@4.1.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@4.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/erictan86/.npm/_logs/2021-02-12T02_05_16_059Z-debug.log
I have no idea how to debug this. Can anyone help? Thanks.