-----------------------------------------------------------
2022-12-11T18:15:55.952Z Install : node-red-node-sqlite 1.0.3
2022-12-11T18:15:55.983Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-sqlite@1.0.3
2022-12-11T18:15:58.818Z [err] npm
2022-12-11T18:15:58.819Z [err] WARN
2022-12-11T18:15:58.820Z [err] config production Use `--omit=dev` instead.
2022-12-11T18:16:21.581Z [err] npm
2022-12-11T18:16:21.581Z [err] WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
2022-12-11T18:16:28.139Z [err] npm
2022-12-11T18:16:28.139Z [err] ERR! code 1
2022-12-11T18:16:28.139Z [err] npm ERR! path /home/pi/.node-red/node_modules/sqlite3
2022-12-11T18:16:28.149Z [err] npm ERR!
2022-12-11T18:16:28.151Z [err] command failed
2022-12-11T18:16:28.151Z [err] npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build
2022-12-11T18:16:28.152Z [err] npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
2022-12-11T18:16:28.153Z [err] npm ERR! node-pre-gyp info it worked if it ends with ok
2022-12-11T18:16:28.153Z [err] npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
2022-12-11T18:16:28.155Z [err] npm ERR! node-pre-gyp info using node@16.18.1 | linux | arm
2022-12-11T18:16:28.155Z [err] npm ERR! node-pre-gyp info check checked for "/home/pi/.node-red/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-arm/node_sqlite3.node" (not found)
2022-12-11T18:16:28.155Z [err] npm ERR! node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.2/napi-v6-linux-glibc-arm.tar.gz
2022-12-11T18:16:28.155Z [err] npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.2/napi-v6-linux-glibc-arm.tar.gz
2022-12-11T18:16:28.155Z [err] npm ERR! node-pre-gyp WARN Pre-built binaries not installable for sqlite3@5.1.2 and node@16.18.1 (node-v93 ABI, glibc) (falling back to source compile with node-gyp)
2022-12-11T18:16:28.155Z [err] npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.2/napi-v6-linux-glibc-arm.tar.gz
2022-12-11T18:16:28.155Z [err] npm ERR! node:internal/modules/cjs/loader:988
2022-12-11T18:16:28.155Z [err] npm ERR!
2022-12-11T18:16:28.156Z [err] throw err;
2022-12-11T18:16:28.157Z [err] npm ERR! ^
2022-12-11T18:16:28.157Z [err] npm ERR!
2022-12-11T18:16:28.157Z [err] npm ERR! Error: Cannot find module 'object-assign'
2022-12-11T18:16:28.157Z [err] npm ERR! Require stack:
2022-12-11T18:16:28.157Z [err] npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
2022-12-11T18:16:28.157Z [err] npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
2022-12-11T18:16:28.157Z [err] npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
2022-12-11T18:16:28.158Z [err] npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
2022-12-11T18:16:28.158Z [err] npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
2022-12-11T18:16:28.158Z [err] npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
2022-12-11T18:16:28.158Z [err] npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
2022-12-11T18:16:28.158Z [err] npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:833:27)
2022-12-11T18:16:28.158Z [err] npm ERR! at Module.require (node:internal/modules/cjs/loader:1057:19)
2022-12-11T18:16:28.158Z [err] npm ERR! at require (node:internal/modules/cjs/helpers:103:18)
2022-12-11T18:16:28.158Z [err] npm
2022-12-11T18:16:28.159Z [err] ERR! at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
2022-12-11T18:16:28.159Z [err] npm ERR! at Module._compile (node:internal/modules/cjs/loader:1155:14)
2022-12-11T18:16:28.159Z [err] npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
2022-12-11T18:16:28.159Z [err] npm ERR! at Module.load (node:internal/modules/cjs/loader:1033:32)
2022-12-11T18:16:28.159Z [err] npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:868:12)
2022-12-11T18:16:28.159Z [err] npm ERR! at Module.require (node:internal/modules/cjs/loader:1057:19) {
2022-12-11T18:16:28.159Z [err] npm ERR! code: 'MODULE_NOT_FOUND',
2022-12-11T18:16:28.159Z [err] npm ERR! requireStack: [
2022-12-11T18:16:28.159Z [err] npm
2022-12-11T18:16:28.159Z [err] ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
2022-12-11T18:16:28.159Z [err] npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
2022-12-11T18:16:28.159Z [err] npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
2022-12-11T18:16:28.159Z [err] npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
2022-12-11T18:16:28.159Z [err] npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
2022-12-11T18:16:28.159Z [err] npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
2022-12-11T18:16:28.159Z [err] npm ERR! ]
2022-12-11T18:16:28.159Z [err] npm ERR! }
2022-12-11T18:16:28.159Z [err] npm
2022-12-11T18:16:28.161Z [err] ERR! node-pre-gyp ERR! build error
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1)
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/.node-red/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1100:16)
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! System Linux 5.15.76-v7l+
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/.node-red/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! cwd /home/pi/.node-red/node_modules/sqlite3
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! node -v v16.18.1
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
2022-12-11T18:16:28.161Z [err] npm ERR! node-pre-gyp ERR! not ok
2022-12-11T18:16:28.175Z [err]
2022-12-11T18:16:28.175Z [err] npm ERR!
2022-12-11T18:16:28.177Z [err] A complete log of this run can be found in:
2022-12-11T18:16:28.177Z [err] npm ERR! /home/pi/.npm/_logs/2022-12-11T18_15_58_632Z-debug-0.log
2022-12-11T18:16:28.211Z rc=1
Renamed the .node-red directory and restarted node-red. Had a clean sheet, no flows. Attempted to install node-red-node-sqlite and the errors are above.
Ah, I think I have it fix. This part npm ERR! make: g++: No such file or directory made me think about other posts I'd seen on the forums. I feel so stupid. I check to see if the build-essential was installed and it wasn't. Once that was installed, it all worked.
I've installed lots of other packages and never had any problems.
It is actually build-essential (not essentials). I can't believe we had not asked you to check that, usually it is one of the first things we ask. I think I was mixing up this thread and another that has been running. It is odd, though, that make was installed but not other tools, apparently. I think that threw me.