# Opening node-red

**URL:** <https://discourse.nodered.org/t/opening-node-red/39665>\
**Category:** General\
**Created:** [24 January 2021 18:17 UTC](https://discourse.nodered.org/t/opening-node-red/39665 "2021-01-24T18:17:03Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [29 January 2021 11:27 UTC](https://discourse.nodered.org/t/opening-node-red/39665/21 "2021-01-29T11:27:20Z")

</div>

yes, it is the node which I have created.  
I did not know how I can test it before publishing.  
Can you tell me how can I resolve it?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [29 January 2021 11:47 UTC](https://discourse.nodered.org/t/opening-node-red/39665/22 "2021-01-29T11:47:39Z")

</div>

You can remove the "node-red" keyword from the package.json file - that way you can still post it to npm but we won't pick it up. While testing you should first just install locally by going into your .node-red dir and then `npm install {path-to-your-dev-directory}/` to install it - restart Node-RED and test it... then when working use `npm pack` in your dev directory to create a .tgz file which again you can then `npm install {path to your tgz file name}.tgz` - maybe on a different machine to test that... then finally npm publish it to npm.

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [29 January 2021 11:59 UTC](https://discourse.nodered.org/t/opening-node-red/39665/23 "2021-01-29T11:59:29Z")

</div>

> [@dceejay](#):
>
> You can remove the "node-red" keyword from the package.json file - that way you can still post it to npm but we won't pick it up. While testing you should first just install locally by going into your .node-red dir and then `npm install {path-to-your-dev-directory}/` to install it - restart Node-RED and test it... then when working use `npm pack` in your dev directory to create a .tgz file which again you can then `npm install {path to your tgz file name}.tgz` - maybe on a different machine to test that... then finally npm publish it to npm

Thank you for the information.

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [29 January 2021 12:03 UTC](https://discourse.nodered.org/t/opening-node-red/39665/24 "2021-01-29T12:03:47Z")

</div>

Now, I have removed the node called :"sample" which was the issue.  
I when I run node-red, I receive this:

# Welcome to Node-RED

29 Jan 12:56:05 - [info] Node-RED version: v1.2.7  
29 Jan 12:56:05 - [info] Node.js version: v14.15.4  
29 Jan 12:56:05 - [info] Windows\_NT 10.0.19041 x64 LE  
29 Jan 12:56:05 - [info] Loading palette nodes  
29 Jan 12:56:06 - [info] Dashboard version 2.25.0 started at /ui  
29 Jan 12:56:06 - [info] Settings file : C:\Users\Admin.node-red\settings.js  
29 Jan 12:56:06 - [info] Context store : 'default' [module=memory]  
29 Jan 12:56:06 - [info] User directory : \Users\Admin.node-red  
29 Jan 12:56:06 - [warn] Projects disabled : editorTheme.projects.enabled=false  
29 Jan 12:56:06 - [info] Flows file : \Users\Admin.node-red\flows\_DESKTOP-GC83620.json  
29 Jan 12:56:06 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
29 Jan 12:56:06 - [warn]

* * *

Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials  
file will not be recoverable, you will have to delete it and re-enter  
your credentials.

## You should set your own key using the 'credentialSecret' option in your settings file. Node-RED will then re-encrypt your credentials file using your chosen key the next time you deploy a change.

29 Jan 12:56:06 - [info] Waiting for missing types to be registered:  
29 Jan 12:56:06 - [info] - modbus-client  
29 Jan 12:56:06 - [info] - Blockly  
29 Jan 12:56:06 - [info] - countdown  
29 Jan 12:56:06 - [info] - toggle

**I guess those**  
_29 Jan 12:56:06 - [info] Waiting for missing types to be registered:_  
_29 Jan 12:56:06 - [info] - modbus-client_  
_29 Jan 12:56:06 - [info] - Blockly_  
_29 Jan 12:56:06 - [info] - countdown_  
_29 Jan 12:56:06 - [info] - toggle_

are the node-red-contrib-... nodes which I have removed them by entering npm remove node-red-contrib-...

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [29 January 2021 12:07 UTC](https://discourse.nodered.org/t/opening-node-red/39665/25 "2021-01-29T12:07:21Z")

</div>

yes - and shouldn't be a problem if you aren't actually using them. if you stop and restart again the warnings should go away if they aren't used in your flow.

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [29 January 2021 12:16 UTC](https://discourse.nodered.org/t/opening-node-red/39665/27 "2021-01-29T12:16:40Z")

</div>

I have restarted it again, but still the same issue!

---

<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:** [29 January 2021 13:54 UTC](https://discourse.nodered.org/t/opening-node-red/39665/28 "2021-01-29T13:54:18Z")

</div>

In that case you have removed some nodes that you are still using, so you will have to install them again.

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [29 January 2021 14:27 UTC](https://discourse.nodered.org/t/opening-node-red/39665/29 "2021-01-29T14:27:14Z")

</div>

> [@TotallyInformation](#):
>
> C:\Users\Admin\AppData\Roaming\npm\node\_modules\node-red\node\_modules

I installed them, but still does not work:

 ![222](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/4/34ecbaa4f19a11762f9b87b4954c70ff708c501c.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:** [29 January 2021 14:31 UTC](https://discourse.nodered.org/t/opening-node-red/39665/30 "2021-01-29T14:31:14Z")

</div>

You can also install on another device direct from GitHub which is what I do when testing updated nodes before they are ready for wider release.

> [@Mas](#):
>
> are the node-red-contrib-... nodes which I have removed them by entering npm remove node-red-contrib-...

Yes 🙂

If you are trying to write your first node, I strongly recommend using a simple template. Node-RED has one, see the docs. I also have a somewhat more complex, annotated example on my GitHub.

---

<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:** [29 January 2021 14:41 UTC](https://discourse.nodered.org/t/opening-node-red/39665/31 "2021-01-29T14:41:49Z")

</div>

> [@Mas](#):
>
> I installed them, but still does not work:

The screenshot you have shared shows Node-RED has started and is running. What about it isn't working?

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [29 January 2021 14:48 UTC](https://discourse.nodered.org/t/opening-node-red/39665/32 "2021-01-29T14:48:09Z")

</div>

> [@TotallyInformation](#):
>
> If you are trying to write your first node, I strongly recommend using a simple template. Node-RED has one, see the docs.

No, it is not working.

 ![333](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/1763f00c49c5ef78e85c7e68431e17e85683de16.png)

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [29 January 2021 16:08 UTC](https://discourse.nodered.org/t/opening-node-red/39665/33 "2021-01-29T16:08:34Z")

</div>

Now, after 28 minut I received this error:

_29 Jan 15:48:27 - [warn] Communication send error: Error: WebSocket is not open: readyState 3 (CLOSED)_

---

<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:** [29 January 2021 16:15 UTC](https://discourse.nodered.org/t/opening-node-red/39665/34 "2021-01-29T16:15:11Z")

</div>

> [@Mas](#):
>
> ow, after 28 minut I received this error

If the editor is stuck on the 'Loading palette' stage, then no amount of waiting is going to fix it.

Is this with the custom node you are developing installed?

Open up the browser developer console and have a look for what errors are reported.

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [29 January 2021 22:35 UTC](https://discourse.nodered.org/t/opening-node-red/39665/35 "2021-01-29T22:35:35Z")

</div>

I don't think so, it is not related to the custom node.  
Please see this photo which is browser developer console:

 ![444](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/c/acd06ffc8a17c4bc803c96e50fcb24c7b2d6f8ff.png)

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [1 February 2021 14:33 UTC](https://discourse.nodered.org/t/opening-node-red/39665/36 "2021-02-01T14:33:16Z")

</div>

could you please help me?  
@knolleary

---

<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:** [1 February 2021 14:45 UTC](https://discourse.nodered.org/t/opening-node-red/39665/37 "2021-02-01T14:45:23Z")

</div>

> [@Mas](#):
>
> I don't think so, it is not related to the custom node.

Why do you think this isn't related to your custom node?

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [1 February 2021 17:05 UTC](https://discourse.nodered.org/t/opening-node-red/39665/38 "2021-02-01T17:05:22Z")

</div>

I do not know! just guessing

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [1 February 2021 19:44 UTC](https://discourse.nodered.org/t/opening-node-red/39665/39 "2021-02-01T19:44:49Z")

</div>

Instead of guessing, why not remove your custom node and see if Node-RED will start up?

---

<div class="post-metadata">

**Author:** ![Mas](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Mas](https://discourse.nodered.org/u/Mas)\
**Post date:** [1 February 2021 20:23 UTC](https://discourse.nodered.org/t/opening-node-red/39665/40 "2021-02-01T20:23:15Z")

</div>

I have tried that by inserting _remove npm node-red-contrib-..._

_C:\Users\Admin\>npm remove node-red-contrib-netio_  
_npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\Admin\package.json'_  
_npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Admin\package.json'_  
_npm WARN Admin No description_  
_npm WARN Admin No repository field._  
_npm WARN Admin No README data_  
_npm WARN Admin No license field._

_audited 735 packages in 3.757s_

_6 packages are looking for funding_

- run `npm fund` for details\*

_found 9 vulnerabilities (6 moderate, 3 high)_

- run `npm audit fix` to fix them, or `npm audit` for details\*

---

<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:** [1 February 2021 20:42 UTC](https://discourse.nodered.org/t/opening-node-red/39665/41 "2021-02-01T20:42:31Z")

</div>

> [@Mas](#):
>
> C:\Users\Admin

Packages are not installed in that folder. With a typical Windows Node-RED installation, your `userDir` is: `%USERPROFILE%\.node-red` and that is where your user installed packages should be. You can see that when Node-RED starts, it tells you where things are.

Also, do yourself a favour and create yourself a standard user to use for day-to-day work. Running as Admin on Windows is like running as root on Linux. If anything bad comes your way, it will have access to just about everything.

[Previous page](https://discourse.nodered.org/t/opening-node-red/39665.md?page=1)

[Next page](https://discourse.nodered.org/t/opening-node-red/39665.md?page=3)
