# Upgrading to v2 and install sqlite inside docker image

**URL:** <https://discourse.nodered.org/t/upgrading-to-v2-and-install-sqlite-inside-docker-image/49222>\
**Category:** General\
**Created:** [2 August 2021 17:26 UTC](https://discourse.nodered.org/t/upgrading-to-v2-and-install-sqlite-inside-docker-image/49222 "2021-08-02T17:26:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunoamaral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brunoamaral/32/16112_2.png) [@brunoamaral](https://discourse.nodered.org/u/brunoamaral)\
**Post date:** [2 August 2021 17:26 UTC](https://discourse.nodered.org/t/upgrading-to-v2-and-install-sqlite-inside-docker-image/49222/1 "2021-08-02T17:26:14Z")

</div>

I have a few flows that use sqlite running smoothly up to 1.3.6. Upgrading to v2 however stops the flows saying that there are node types missing: sqlitedb and sqlite.

But they are already installed:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/f/2ff174a20f3c5b4345f726ca10cc582be4ed6381.png)

My first guess was that I had to ssh into the docker image and install them, but once inside, there is no apt command to install sqlite and the npm command seems to work as expected. I am using a volume to keep the node\_modules directory persistent across images.

What am I missing here?

---

<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:** [2 August 2021 18:29 UTC](https://discourse.nodered.org/t/upgrading-to-v2-and-install-sqlite-inside-docker-image/49222/2 "2021-08-02T18:29:05Z")

</div>

NR v2 docker image uses a newer version of nodejs so you will need to npm rebuild any nodes that you have added that have a binary component (eg SQLite). You won’t be able to use the same node\_modules directory for both docker images

---

<div class="post-metadata">

**Author:** ![brunoamaral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brunoamaral/32/16112_2.png) [@brunoamaral](https://discourse.nodered.org/u/brunoamaral)\
**Post date:** [3 August 2021 14:15 UTC](https://discourse.nodered.org/t/upgrading-to-v2-and-install-sqlite-inside-docker-image/49222/3 "2021-08-03T14:15:27Z")

</div>

Thank you @dceejay. I tried to run npm rebuild inside the container, and even reinstalling the sqlite and sqlitedb modules, but after restarting the container it still shows the nodes as not being recognised in the flow.

---

<div class="post-metadata">

**Author:** ![brunoamaral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brunoamaral/32/16112_2.png) [@brunoamaral](https://discourse.nodered.org/u/brunoamaral)\
**Post date:** [5 August 2021 22:49 UTC](https://discourse.nodered.org/t/upgrading-to-v2-and-install-sqlite-inside-docker-image/49222/4 "2021-08-05T22:49:43Z")

</div>

For anyone looking for this answer, I had to run both commands:

```auto
npm rebuild
npm rebuild sqlite

```

---

<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:** [19 August 2021 22:50 UTC](https://discourse.nodered.org/t/upgrading-to-v2-and-install-sqlite-inside-docker-image/49222/5 "2021-08-19T22:50:38Z")

</div>

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