# Dashboard 2 Question

**URL:** <https://discourse.nodered.org/t/dashboard-2-question/89759>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [25 July 2024 15:00 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759 "2024-07-25T15:00:30Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [25 July 2024 20:38 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/21 "2024-07-25T20:38:28Z")

</div>

Yes each project has its own package.json

I use an node-red application to check if there are new packages available and I generate a script-file with entries for every environment which uses this package. That means a new node-red version, when tested, is rolled out in one step for every container and restart.

An example for the test-application (segment of the update-script):

npx npm-check-updates -u --jsonUpgraded --cwd /home/domotics/noderedtest1/.node-red  
npx npm-check-updates -u --jsonUpgraded --cwd /home/domotics/noderedtest1/.node-red/projects/test  
cd /home/domotics/noderedtest1/.node-red  
npm install --prefix=/home/domotics/noderedtest1/.node-red

---

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [25 July 2024 20:59 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/22 "2024-07-25T20:59:50Z")

</div>

Hi @Colin and @joepavitt  
Yes I move the relevant entries from the project-package.json to the first one. Reinstall and restart the application - and I see Colins gauge and a flow-viewer Yeah - that was the problem as you assumed.  
Thx again it was fun

ps if you make changes I can test them if you want

---

<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:** [25 July 2024 21:09 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/23 "2024-07-25T21:09:04Z")

</div>

I have submitted an issue for this. [Third party nodes not being loaded when node-red projects are in use. · Issue #1129 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/issues/1129)

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [26 July 2024 06:16 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/24 "2024-07-26T06:16:37Z")

</div>

Is it definitely projects causing this though? Or is this something bespoke about @Roland's setup that causes the two `package.json` files?

---

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [26 July 2024 06:50 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/25 "2024-07-26T06:50:11Z")

</div>

The node-red project documentation says " Each project has its own `package.json` file that includes a list of node modules the project depends on".  
I remember by establishing the project feature the explained constellation arise with the second package.json. So I assume that using projects in node-red provoke this situation.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [26 July 2024 07:09 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/26 "2024-07-26T07:09:56Z")

</div>

Thanks @Roland - when you installed the third-party nodes, did you use the in-Editor "Palette Manager", or install via terminal?

---

<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:** [26 July 2024 07:10 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/27 "2024-07-26T07:10:59Z")

</div>

You said you copied the entries from the project package.json to the one in .node-red, then re-installed the nodes. Can you first check please that the entries for the nodes are identical in both files and then remove the entries from the one in .node-red, restart node-red and check that the problem still remains.

---

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [26 July 2024 07:47 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/28 "2024-07-26T07:47:51Z")

</div>

@joepavitt normally I don't use the "Palette Manager" but I can try it out with another module. I have to find another third-party module and install it with "Palette Manager".  
What I see is, there is no entry in the package.json but there are entries in the package-lock.json in the .node-red directory. There is no package-lock.json and no node\_modules in the project directory available.

**Is this one of the entries you mentioned and which are necessary ?**

```auto
"node_modules/@flowfuse/node-red-dashboard-2-ui-iframe": {
           "version": "1.1.0",
           "resolved": "https://registry.npmjs.org/@flowfuse/node-red-dashboard-2-ui-iframe/-/node-red-dashboard-2-ui-iframe-1.1.0.tgz",
           "integrity": "sha512-Yglk1TKw3GGzgffYFGreWMxrjAdAISohtdmx0a/p4qEQiirBPzUkFAGq+ptTJYZuyG0B9e3xeVGruZMeZxArzg==",
           "license": "Apache-2.0",
           "dependencies": {
               "to-title-case": "^1.0.0",
               "vue": "^3.3.8",
               "vuex": "^4.1.0"
           },
           "engines": {
               "node": ">=14"
           }

```

@Colin Sorry I was not precise in my statement. What I exectly have done I move the entries from project-package.json to the main-package.json. That means the same entries are only available in the main-file. Then I rename the node\_modules\_directory to node\_modulesx and start an **npm install** in the .node-red directory.  
If you want I can move the entries back from main to project-package.json and make again a complete reinstall. What I don't know is what happens with the existing entries in package-lock.json. I think I can make a reinstall with an empty node\_modules and empty package-lock.json.

---

<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:** [26 July 2024 07:54 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/29 "2024-07-26T07:54:37Z")

</div>

Ignore package-lock.json, it is not relevant here. It is only the package.json files that matter.

I fear that you may have complicated the situation with installing the nodes at the top level, so if possible I suggest you re-install and start again. My previous suggestion was just to copy the package.json entries across to see if it was their locatioin that was the problem.

---

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [26 July 2024 08:13 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/30 "2024-07-26T08:13:38Z")

</div>

@joepavitt I install another module "@flowfuse/node-red-dashboard-2-ui-led" with "palette manager" and restart. And yes the palette manager writes the entry in the main-package.json and make entries in the package-lock-file. After restart I see a green led.  
The problem comes with my manner. "edit manually package.json and use npm-commands" not using palette manager and make the entries in the project-package.json.  
Sorry, sorry for the circumstances.  
For me it works in this way since years - I don't understand the new dependency with package-lock.json. The npm-installation of the third-party modules works in the same way like all others. Only the new necessary update of the central package-lock is missing.  
I think I am the only one with this problem. Excuse me @joepavitt and @Colin

---

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [26 July 2024 08:36 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/31 "2024-07-26T08:36:05Z")

</div>

@Colin I do three tests :

1. entries in main-file and not in project -\> works
2. entries in main-file and in project-file -\> works
3. entries not in main-file only on project -\> don't work

Was this your question. I always restart and I always drop node\_modules-directory but I don't touch package\_lock.json. The mentioned entries in package-lock still exist, you are absolutly right package-lock is not relevant.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [26 July 2024 09:32 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/32 "2024-07-26T09:32:02Z")

</div>

No need to apologise, what you're doing is perfectly legitimate, but I am pleased to hear it's not a wider problem with Dashboard

---

<div class="post-metadata">

**Author:** ![Sandrei](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sandrei](https://discourse.nodered.org/u/Sandrei)\
**Post date:** [26 July 2024 10:16 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/33 "2024-07-26T10:16:01Z")

</div>

Hi, I can assist you perfeclty for node-RED dashboard UI.  
I have experienced .  
Please feel free to contact me.

---

<div class="post-metadata">

**Author:** ![Roland](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Roland](https://discourse.nodered.org/u/Roland)\
**Post date:** [26 July 2024 11:35 UTC](https://discourse.nodered.org/t/dashboard-2-question/89759/34 "2024-07-26T11:35:11Z")

</div>

no thank you

[Previous page](https://discourse.nodered.org/t/dashboard-2-question/89759.md?page=1)
