I'm creating a new node for the first time in Node-RED. I ran through the tutorial on creating my first node to change the input to lowercase.
However, after installing the node, I always get 'name' already registered by module node-red. I changed the name of my node several times, but this error still appears in both the pallet and the console.

Startup Logs
4 Jun 17:19:11 - [info]
2024-06-04T17:19:11.807805410Z
2024-06-04T17:19:11.807809120Z Welcome to Node-RED
2024-06-04T17:19:11.807811230Z ===================
2024-06-04T17:19:11.807813100Z
2024-06-04T17:19:11.808093868Z 4 Jun 17:19:11 - [info] Node-RED version: v3.1.4
2024-06-04T17:19:11.808317982Z 4 Jun 17:19:11 - [info] Node.js version: v16.20.2
2024-06-04T17:19:11.808397147Z 4 Jun 17:19:11 - [info] Linux 5.15.146.1-microsoft-standard-WSL2 x64 LE
2024-06-04T17:19:12.059360925Z 4 Jun 17:19:12 - [info] Loading palette nodes
2024-06-04T17:19:12.653989717Z 4 Jun 17:19:12 - [info] Dashboard version 3.6.2 started at /ui
2024-06-04T17:19:12.796686287Z 4 Jun 17:19:12 - [warn] ------------------------------------------------------
2024-06-04T17:19:12.797415818Z 4 Jun 17:19:12 - [warn] [node-red-contrib-ntc/ntc-test] 'ntc-test' already registered by module node-red
2024-06-04T17:19:12.797557282Z 4 Jun 17:19:12 - [warn] ------------------------------------------------------
2024-06-04T17:19:12.797874718Z 4 Jun 17:19:12 - [info] Settings file : /data/settings.js
2024-06-04T17:19:12.798382756Z 4 Jun 17:19:12 - [info] Context store : 'default' [module=memory]
2024-06-04T17:19:12.798927254Z 4 Jun 17:19:12 - [info] User directory : /data
2024-06-04T17:19:12.799051436Z 4 Jun 17:19:12 - [warn] Projects disabled : editorTheme.projects.enabled=false
2024-06-04T17:19:12.799298583Z 4 Jun 17:19:12 - [info] Flows file : /data/flows.json
2024-06-04T17:19:12.804582207Z 4 Jun 17:19:12 - [info] Server now running at https://127.0.0.1:1880/
2024-06-04T17:19:12.806099503Z [2024-06-04 17:19:12.805] [INFO] NodeRed FlowManager - Flow filtering state: []
2024-06-04T17:19:12.840321409Z 4 Jun 17:19:12 - [warn] Using unencrypted credentials
2024-06-04T17:19:12.876872884Z 4 Jun 17:19:12 - [info] Starting flows
2024-06-04T17:19:12.887547632Z 4 Jun 17:19:12 - [info] [mongodb4-client:58bf183a277d3721] client initialized with app name 'nodered-dzgvo3fk'
2024-06-04T17:19:13.014891560Z 4 Jun 17:19:13 - [info] Started flows
2024-06-04T17:19:13.016197118Z 4 Jun 17:19:13 - [info] [tcp in:From External] listening on port 8181
2024-06-04T17:19:13.076215388Z 4 Jun 17:19:13 - [info] [mqtt-broker:a5ac06f6.ba88c8] Connected to broker: nodered@mqtts://mqtt:8883
What's odd is that I can still use the node within the Node-RED dashboard and it works, but this error still shows:
It's worth mentioning that I'm running this within a Docker container.
Here is the basic lower-case node (but renamed):
ntc-test.js
module.exports = function(RED) {
function NTCTestNode(config) {
RED.nodes.createNode(this, config);
var node = this;
node.on('input', function(msg) {
msg.payload = msg.payload.toLowerCase();
node.send(msg);
});
}
RED.nodes.registerType("ntc-test", NTCTestNode);
}
ntc-test.html
<script type="text/javascript">
RED.nodes.registerType('ntc-test', {
category: 'function',
color: '#a6bbcf',
defaults: {
name: {value: ""}
},
inputs: 1,
outputs: 1,
icon: "file.svg",
label: function () {
return this.name || "ntc-test";
}
});
</script>
<script type="text/html" data-template-name="ntc-test">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/html" data-help-name="ntc-test">
<p>A simple node that converts the message payloads into all lower-case characters</p>
</script>
package.json
{
"name": "node-red-contrib-ntc",
"version": "1.0.0",
"description": "Testing NTC",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"node-red": {
"nodes": {
"ntc-test": "ntc-test.js"
}
},
"devDependencies": {
"@node-red/editor-api": "^3.1.9",
"@node-red/nodes": "^3.1.9",
"@node-red/runtime": "^3.1.9",
"@node-red/util": "^3.1.9",
"node-red": "^3.1.9"
}
}
I appreciate any help!



