# Missing nodes in Nodes list

**URL:** https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207
**Category:** Developing Nodes
**Created:** [11 September 2023 16:10 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207 "2023-09-11T16:10:18Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![dovevgo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dovevgo/32/82756_2.png) [@dovevgo](https://discourse.nodered.org/u/dovevgo)
#### Post date: [11 September 2023 16:10 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/1 "2023-09-11T16:10:18Z")

</div>

I have written a simple node that should interact with minecraft server using RCON protocol.  
For some reason, I can see the Nodes in the Palette view, and both of them are shaded, but enabled.  
I do not see them in the Nodes list in the Flow editor.

What could be the problem?

 ![2023-09-11_19-09-35](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/7/3774b5f9cc764f4127de3ab9a3c360508578bd0e.png)

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 September 2023 16:29 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/2 "2023-09-11T16:29:09Z")

</div>

Did you get a message to restart Node-RED - some installations require that. Then you would need to also reload the Editor page.

---

<div class="post-metadata">

### Author: ![dovevgo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dovevgo/32/82756_2.png) [@dovevgo](https://discourse.nodered.org/u/dovevgo)
#### Post date: [11 September 2023 16:33 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/3 "2023-09-11T16:33:19Z")

</div>

Yes,  
I have restarted the Node-red, didn't help.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 September 2023 16:45 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/4 "2023-09-11T16:45:59Z")

</div>

And reloaded the page?

Check the Node-RED log for issues. Then also check the console on the dev tools for the Editor page.

---

<div class="post-metadata">

### Author: ![dovevgo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dovevgo/32/82756_2.png) [@dovevgo](https://discourse.nodered.org/u/dovevgo)
#### Post date: [11 September 2023 18:13 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/5 "2023-09-11T18:13:13Z")

</div>

There are no logged errors, or anything in the browser console.

This is my Nodes code:

**package.json**

```auto
{
    "name": "node-red-Minecraft-Server-Connector",
    "version": "0.0.5",
    "description": "Node-RED nodes to interact Minecraft Server using RCON protocol",
	"author": "Dovev Golan",
    "dependencies": {
        "rcon-client": "latest"
    },
    "node-red": {
        "nodes": {
            "rcon-server": "./mc-server",
            "rcon-command": "./mc-command"
        }
    }
}

```

**mc-command.html**

```auto
<script type="text/javascript">
    RED.nodes.registerType('mc-command',{
        category: 'Minecraft', // The category in the sidebar under which this node will appear
        color: '#FFA500', // Orange color
        defaults: {
            server: {type: "mc-server", required: true},
        },
        inputs: 1,
        outputs: 1,
        icon: "cog", // You can specify a custom icon if you want
        label: function() {
            return this.name || "RCON Command";
        }
    });
</script>

<script type="text/html" data-template-name="mc-command">
    <div class="form-row">
        <label for="node-input-server"><i class="fa fa-server"></i> Server</label>
        <input type="text" id="node-input-server" placeholder="Server">
    </div>
</script>

<script type="text/html" data-help-name="mc-command">
    <p>This node sends RCON commands to a Minecraft server.</p>
</script>

```

**mc-command.js**

```auto
const Rcon = require('rcon-client');

module.exports = function(RED) {
    function RconCommandNode(config) {
        RED.nodes.createNode(this, config);
        
        this.server = RED.nodes.getNode(config.server);
        var node = this;

        node.on('input', function(msg) {
            const rcon = new Rcon({
                host: this.server.host,
                port: this.server.port,
                password: this.server.password,
            });

            rcon.connect()
                .then(() => {
                    return rcon.send(msg.payload);
                })
                .then(response => {
                    msg.payload = response;
                    rcon.end();
                    node.send(msg);
                })
                .catch(error => {
                    node.error(error);
                });
        });
    }

    RED.nodes.registerType("mc-command", RconCommandNode);
};

```

**mc-server.html**

```auto
<script type="text/javascript">
    RED.nodes.registerType('mc-server', {
        category: 'Minecraft',
		color: '#a6bbcf',
		icon: "cog",
        defaults: {
            host: {value: "", required: true},
            port: {value: "", required: true},
            password: {value: "", required: true}
        },
        label: function() {
            return this.name || "RCON Server";
        }
    });
</script>
<!-- More code for HTML form here -->

```

**mc-server.js**

```auto
module.exports = function(RED) {
    function RconServerConfigNode(config) {
        RED.nodes.createNode(this, config);
        this.host = config.host;
        this.port = config.port;
        this.password = config.password;
    }
    
    RED.nodes.registerType("mc-server", RconServerConfigNode);
}

```

What am I doing wrong?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 September 2023 19:45 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/6 "2023-09-11T19:45:03Z")

</div>

> [@dovevgo](#):
>
> `"rcon-command": "./mc-command"`

> [@dovevgo](#):
>
> `RED.nodes.registerType('mc-command',{`

> [@dovevgo](#):
>
> `RED.nodes.registerType("mc-command", RconCommandNode);`

The names are mismatched. They all need to be `rcon-command`

---

<div class="post-metadata">

### Author: ![dovevgo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dovevgo/32/82756_2.png) [@dovevgo](https://discourse.nodered.org/u/dovevgo)
#### Post date: [12 September 2023 08:59 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/7 "2023-09-12T08:59:17Z")

</div>

I have updated Package.json as follow:

```auto
{
    "name": "node-red-Minecraft-Server-Connector",
    "version": "0.0.8",
    "description": "Node-RED nodes to interact Minecraft Server using RCON protocol",
	"author": "Dovev Golan",
    "dependencies": {
        "rcon-client": "latest"
    },
    "node-red": {
        "nodes": {
            "mc-server": "./mc-server",
            "mc-command": "./mc-command"
        }
    }
}

```

The result is still the same...

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [12 September 2023 09:29 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/8 "2023-09-12T09:29:22Z")

</div>

For **mc-server.html**  
The `category` needs to be `config` if its being used as a config node

[Configuration nodes : Node-RED (nodered.org)](https://nodered.org/docs/creating-nodes/config-nodes)

As for your `package.json`  
whilst i _think_ its not causing issues, i would do.

```auto

 "nodes": {
            "mc-server": "mc-server.js",
            "mc-command": "mc-command.js"
        }

```

---

<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: [26 September 2023 09:30 UTC](https://discourse.nodered.org/t/missing-nodes-in-nodes-list/81207/9 "2023-09-26T09:30:03Z")

</div>

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