# Can't get SQLite to install

**URL:** <https://discourse.nodered.org/t/cant-get-sqlite-to-install/44515>\
**Category:** General\
**Created:** [22 April 2021 02:06 UTC](https://discourse.nodered.org/t/cant-get-sqlite-to-install/44515 "2021-04-22T02:06:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrayb](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jrayb](https://discourse.nodered.org/u/jrayb)\
**Post date:** [22 April 2021 02:06 UTC](https://discourse.nodered.org/t/cant-get-sqlite-to-install/44515/1 "2021-04-22T02:06:56Z")

</div>

I have tried several options that were posted here & I cannot get the node to install.  
Log is below.  
2021-04-22T02:05:02.537Z Install : node-red-node-sqlite 0.6.0

2021-04-22T02:05:02.599Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-node-sqlite@0.6.0  
2021-04-22T02:05:09.923Z [err] npm  
2021-04-22T02:05:09.924Z [err] ERR! Unexpected end of JSON input while parsing near '...egistry.npmjs.org/sql'  
2021-04-22T02:05:09.948Z [err]  
2021-04-22T02:05:09.949Z [err] npm ERR! A complete log of this run can be found in:  
2021-04-22T02:05:09.949Z [err] npm ERR! /home/pi/.npm/\_logs/2021-04-22T02\_05\_09\_928Z-debug.log  
2021-04-22T02:05:09.967Z rc=1

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [22 April 2021 07:09 UTC](https://discourse.nodered.org/t/cant-get-sqlite-to-install/44515/2 "2021-04-22T07:09:22Z")

</div>

Have you installed sqlite3 yet? From the cli try  
sudo apt install sqlite3  
And then try installing the node

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 April 2021 07:26 UTC](https://discourse.nodered.org/t/cant-get-sqlite-to-install/44515/3 "2021-04-22T07:26:02Z")

</div>

You npm cache may be corrupted. Go to your .node-red folder and run  
`npm cache clean --force`

and then try the install again.

---

<div class="post-metadata">

**Author:** ![jrayb](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jrayb](https://discourse.nodered.org/u/jrayb)\
**Post date:** [28 April 2021 03:17 UTC](https://discourse.nodered.org/t/cant-get-sqlite-to-install/44515/4 "2021-04-28T03:17:25Z")

</div>

This was the solution!! Thanks for the help guys!!

---

<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:** [27 June 2021 03:17 UTC](https://discourse.nodered.org/t/cant-get-sqlite-to-install/44515/5 "2021-06-27T03:17:40Z")

</div>

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