# Issue in using node after creating custom node

**URL:** <https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666>\
**Category:** General\
**Created:** [13 December 2023 10:37 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666 "2023-12-13T10:37:39Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![hammad](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hammad](https://discourse.nodered.org/u/hammad)\
**Post date:** [13 December 2023 10:37 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/1 "2023-12-13T10:37:39Z")

</div>

I am kind of new to node and didn't know much about that. I am creating custom nodes to run over the IP security camera which will interact with the camera and extract data by using camera's internal protocols. I am able to create nodes but I am facing an issue whenever I want to use the node it didnot configure properly and stuck on the screen until I make some changes in flow and deploy it continue with the warning then it disappear and display on the left top corner of the flow from where I can able to use it. I am trying the node by editing the path inside the settings.js file. Can you please suggest something to get out of this? Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 December 2023 10:42 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/2 "2023-12-13T10:42:29Z")

</div>

Hi, it is a little unclear

> [@hammad](#):
>
> I am trying the node by editing the path inside the settings.js file

What path? Why? Would you expect users of your node to also edit settings.js?

> [@hammad](#):
>
> I want to use the node it didnot configure properly and stuck on the screen

Stuck on what screen? how? show us.

> [@hammad](#):
>
> until I make some changes in flow and deploy it continue with the warning then it disappear and display on the left top corner of the flow from where I can able to use it

What changes? what warning? what disapears? use what?

* * *

Perhaps some screenshots and logs would help. Or a video demonstration? Also, a link to your repository too?

---

<div class="post-metadata">

**Author:** ![hammad](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hammad](https://discourse.nodered.org/u/hammad)\
**Post date:** [13 December 2023 10:54 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/3 "2023-12-13T10:54:52Z")

</div>

> [@Steve-Mcl](#):
>
> What path? Why? Would you expect users of your node to also edit settings.js?

Thanks a lot for your response.  
I am actually testing it by my own I will publish latter after completing the group.

---

<div class="post-metadata">

**Author:** ![hammad](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hammad](https://discourse.nodered.org/u/hammad)\
**Post date:** [13 December 2023 10:55 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/4 "2023-12-13T10:55:41Z")

</div>

> [@Steve-Mcl](#):
>
> What path? Why? Would you expect users of your node to also edit settings.js?

Set the path inside globalfunctioncontext in settings.js file.

---

<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:** [13 December 2023 11:46 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/5 "2023-12-13T11:46:24Z")

</div>

> [@hammad](#):
>
> Set the path inside globalfunctioncontext in settings.js file.

That is not the way to install a custom node. What exactly do you mean by 'custom node`?

These are the docs for creating custom nodes. [Creating Nodes : Node-RED](https://nodered.org/docs/creating-nodes)

---

<div class="post-metadata">

**Author:** ![hammad](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hammad](https://discourse.nodered.org/u/hammad)\
**Post date:** [13 December 2023 12:54 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/6 "2023-12-13T12:54:28Z")

</div>

Thanks a lot for referring to the documents. Actually I have some limitation on security camera as it is arm64 architecture with embedded Linux with limited command functionality for security purposes. But I will try to go with this method as well.

---

<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:** [13 December 2023 13:17 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/7 "2023-12-13T13:17:01Z")

</div>

Do you need to make a custom node, rather than building a flow to do what you want?

---

<div class="post-metadata">

**Author:** ![hammad](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hammad](https://discourse.nodered.org/u/hammad)\
**Post date:** [13 December 2023 13:30 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/8 "2023-12-13T13:30:26Z")

</div>

I need to build custom nodes for security camera. But I when try to use it locally inside the flow then I got the above issue.

---

<div class="post-metadata">

**Author:** ![hammad](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hammad](https://discourse.nodered.org/u/hammad)\
**Post date:** [13 December 2023 13:31 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/9 "2023-12-13T13:31:46Z")

</div>

Before publishing I actually want to use it locally to find the issues and resolve the stuff.

---

<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:** [13 December 2023 13:39 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/10 "2023-12-13T13:39:52Z")

</div>

To install the file locally all you have to do is to go into your .node-red folder and run  
`npm install /full/path/to/custom/node/source`  
and restart node-red. If you edit the node's source then you can just restart node red to start using the modified node.

---

<div class="post-metadata">

**Author:** ![hammad](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hammad](https://discourse.nodered.org/u/hammad)\
**Post date:** [16 January 2024 14:07 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/11 "2024-01-16T14:07:24Z")

</div>

Hi Colin, Thanks a lot for your suggestions. Sorry for being late reply as I was on vacations. I tried the stuff as you instructed but I am not able to solve my problem. My custom node is basically not getting any input the whole logic is build inside its code and it is just getting the value inside the camera by interacting with its protocols and giving output.

---

<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:** [16 January 2024 14:54 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/12 "2024-01-16T14:54:20Z")

</div>

Have you installed the node ok?

Do you see it in the palette in the editor?

If you place the node on the flow and double click it, does its config screen appear and behave as you expect?

---

<div class="post-metadata">

**Author:** ![hammad](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hammad](https://discourse.nodered.org/u/hammad)\
**Post date:** [30 January 2024 15:05 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/13 "2024-01-30T15:05:12Z")

</div>

Hi Colin, Thanks a lot for your help I am able to resolve the issue. I made a mistake in .html file as my node was not getting any custom configuration from user so I don't need to get any thing from user and didnot write the default block, which was actually causing the problem now I add default with empty brackets and it solve the issue.

---

<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 March 2024 15:06 UTC](https://discourse.nodered.org/t/issue-in-using-node-after-creating-custom-node/83666/14 "2024-03-30T15:06:00Z")

</div>

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