# Setting.js is not opening

**URL:** <https://discourse.nodered.org/t/setting-js-is-not-opening/56515>\
**Category:** General\
**Created:** [12 January 2022 10:28 UTC](https://discourse.nodered.org/t/setting-js-is-not-opening/56515 "2022-01-12T10:28:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aminulhaq](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@aminulhaq](https://discourse.nodered.org/u/aminulhaq)\
**Post date:** [12 January 2022 10:28 UTC](https://discourse.nodered.org/t/setting-js-is-not-opening/56515/1 "2022-01-12T10:28:27Z")

</div>

hi,  
I want to add login and password to my node red dashboard but when i open setting file it is showing error how to solve the issue  
 ![setting.js node red fail](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/5/3597c73f2fb79c978875d59670d266ca552d3eed.png)

---

<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:** [12 January 2022 10:30 UTC](https://discourse.nodered.org/t/setting-js-is-not-opening/56515/2 "2022-01-12T10:30:27Z")

</div>

dont double click it - on windows that try's to execute the JS.

Instead, right click open with --\> notepad

Or better still, install a proper editor like `vscode`

---

<div class="post-metadata">

**Author:** ![aminulhaq](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@aminulhaq](https://discourse.nodered.org/u/aminulhaq)\
**Post date:** [12 January 2022 10:38 UTC](https://discourse.nodered.org/t/setting-js-is-not-opening/56515/3 "2022-01-12T10:38:03Z")

</div>

then i try in command promt and write settings.js then it is also giving same error

---

<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:** [12 January 2022 10:40 UTC](https://discourse.nodered.org/t/setting-js-is-not-opening/56515/4 "2022-01-12T10:40:49Z")

</div>

> [@aminulhaq](#):
>
> then i try in command promt and write settings.js

If you are just writing `settings.js` in the terminal and hitting enter, then you are trying to run it. Don't do that. You need to open it in an editor, such as notepad as @Steve-Mcl has described.

---

<div class="post-metadata">

**Author:** ![aminulhaq](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@aminulhaq](https://discourse.nodered.org/u/aminulhaq)\
**Post date:** [12 January 2022 10:47 UTC](https://discourse.nodered.org/t/setting-js-is-not-opening/56515/5 "2022-01-12T10:47:35Z")

</div>

how will i creat bcrypt password while using windows10 for my login

---

<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:** [12 January 2022 10:49 UTC](https://discourse.nodered.org/t/setting-js-is-not-opening/56515/6 "2022-01-12T10:49:38Z")

</div>

Its detailed in the docs.

[https://nodered.org/docs/user-guide/runtime/securing-node-red#generating-the-password-hash](https://nodered.org/docs/user-guide/runtime/securing-node-red#generating-the-password-hash)

---

<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:** [13 March 2022 10:50 UTC](https://discourse.nodered.org/t/setting-js-is-not-opening/56515/7 "2022-03-13T10:50:21Z")

</div>

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