# Trouble Registering Custom Node

**URL:** <https://discourse.nodered.org/t/trouble-registering-custom-node/8237>\
**Category:** General\
**Created:** [21 February 2019 17:51 UTC](https://discourse.nodered.org/t/trouble-registering-custom-node/8237 "2019-02-21T17:51:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [21 February 2019 22:02 UTC](https://discourse.nodered.org/t/trouble-registering-custom-node/8237/5 "2019-02-21T22:02:06Z")

</div>

Hi @tcontrada

as a side note, when sharing code of any sort, it helps to format it properly - this post explains how/why: [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

The `.node-red/nodes` directory is used to load local nodes that are not packaged as a module - so the package.json is ignored and it will load any .js/.html file pair it can find.

Are there any error messages in the log when you start Node-RED related to your node?

---

_[View the full topic](https://discourse.nodered.org/t/trouble-registering-custom-node/8237)._
