# Can't install node-red-node-sqlite

**URL:** <https://discourse.nodered.org/t/cant-install-node-red-node-sqlite/24955>\
**Category:** General\
**Created:** [16 April 2020 15:25 UTC](https://discourse.nodered.org/t/cant-install-node-red-node-sqlite/24955 "2020-04-16T15:25:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellerre](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@ellerre](https://discourse.nodered.org/u/ellerre)\
**Post date:** [16 April 2020 15:25 UTC](https://discourse.nodered.org/t/cant-install-node-red-node-sqlite/24955/1 "2020-04-16T15:25:38Z")

</div>

Hello everyone!  
Due a my error, I reinstalled Armbian, Node Red etc... on Armbian Buster with Linux 4.14.174-odroidxu4

Everything worked, but ... (there is always a "but :))  
I can't install "node-red-node-sqlite" from the command line or from the web:

16 Apr 16:48:30 - [info] Installing module: node-red-node-sqlite, version: 0.4.3  
16 Apr 16:48:47 - [warn] Installation of module node-red-node-sqlite failed:  
16 Apr 16:48:47 - [warn] ------------------------------------------  
16 Apr 16:48:47 - [warn] npm WARN deprecated request@2.88.2: request has been deprecated, see [https://github.com/request/request/issues/3142](https://github.com/request/request/issues/3142)  
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-v72-linux-arm.tar.gz](https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v72-linux-arm.tar.gz)  
node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.1.1 and node@12.16.2 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)  
Traceback (most recent call last):  
File "/usr/lib/node\_modules/npm/node\_modules/node-gyp/gyp/gyp\_main.py", line 47, in   
import gyp  
File "/usr/lib/node\_modules/npm/node\_modules/node-gyp/gyp/pylib/gyp/ **init**.py", line 10, in   
import gyp.input  
File "/usr/lib/node\_modules/npm/node\_modules/node-gyp/gyp/pylib/gyp/input.py", line 7, in   
import ast  
ImportError: No module named ast  
gyp ERR! configure error  
gyp ERR! stack Error: `gyp` failed with exit code: 1  
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node\_modules/npm/node\_modules/node-gyp/lib/configure.js:351:16)  
gyp ERR! stack at ChildProcess.emit (events.js:310:20)  
gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:275:12)  
gyp ERR! System Linux 4.14.174-odroidxu4  
gyp ERR! command "/usr/bin/node" "/usr/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/sysop/.node-red/node\_modules/sqlite3/lib/binding/node-v72-linux-arm/node\_sqlite3.node" "--module\_name=node\_sqlite3" "--module\_path=/home/sysop/.node-red/node\_modules/sqlite3/lib/binding/node-v72-linux-arm" "--napi\_version=5" "--node\_abi\_napi=napi" "--napi\_build\_version=0" "--node\_napi\_label=node-v72"  
gyp ERR! cwd /home/sysop/.node-red/node\_modules/sqlite3  
gyp ERR! node -v v12.16.2  
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/bin/node /usr/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/sysop/.node-red/node\_modules/sqlite3/lib/binding/node-v72-linux-arm/node\_sqlite3.node --module\_name=node\_sqlite3 --module\_path=/home/sysop/.node-red/node\_modules/sqlite3/lib/binding/node-v72-linux-arm --napi\_version=5 --node\_abi\_napi=napi --napi\_build\_version=0 --node\_napi\_label=node-v72' (1)  
node-pre-gyp ERR! stack at ChildProcess. (/home/sysop/.node-red/node\_modules/node-pre-gyp/lib/util/compile.js:83:29)  
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:310:20)  
node-pre-gyp ERR! stack at maybeClose (internal/child\_process.js:1021:16)  
node-pre-gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:286:5)  
node-pre-gyp ERR! System Linux 4.14.174-odroidxu4  
node-pre-gyp ERR! command "/usr/bin/node" "/home/sysop/.node-red/node\_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"  
node-pre-gyp ERR! cwd /home/sysop/.node-red/node\_modules/sqlite3  
node-pre-gyp ERR! node -v v12.16.2  
node-pre-gyp ERR! node-pre-gyp -v v0.11.0  
node-pre-gyp ERR! not ok  
npm WARN node-red-project@0.0.1 No repository field.  
npm WARN node-red-project@0.0.1 No license 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.

```auto

I tried, just for test, with "node-red-node-mysql": no error.

An npm -v returns 6.14.4 and node -v v12.16.2

Can you help me?

Thank you.

LR
```

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [16 April 2020 15:28 UTC](https://discourse.nodered.org/t/cant-install-node-red-node-sqlite/24955/2 "2020-04-16T15:28:43Z")

</div>

Maybe this will help [https://github.com/Koenkk/zigbee2mqtt/issues/2647](https://github.com/Koenkk/zigbee2mqtt/issues/2647)  
then retry.

---

<div class="post-metadata">

**Author:** ![ellerre](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@ellerre](https://discourse.nodered.org/u/ellerre)\
**Post date:** [16 April 2020 17:17 UTC](https://discourse.nodered.org/t/cant-install-node-red-node-sqlite/24955/3 "2020-04-16T17:17:38Z")

</div>

Fantastico!!!!

U saved me!  
I owe u a coffee!

Thank u so much!

LR

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 April 2020 17:17 UTC](https://discourse.nodered.org/t/cant-install-node-red-node-sqlite/24955/4 "2020-04-30T17:17:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
