# How to run command line after installing the node-red with snap

**URL:** <https://discourse.nodered.org/t/how-to-run-command-line-after-installing-the-node-red-with-snap/54614>\
**Category:** General\
**Created:** [2 December 2021 01:11 UTC](https://discourse.nodered.org/t/how-to-run-command-line-after-installing-the-node-red-with-snap/54614 "2021-12-02T01:11:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yang](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yang](https://discourse.nodered.org/u/yang)\
**Post date:** [2 December 2021 01:11 UTC](https://discourse.nodered.org/t/how-to-run-command-line-after-installing-the-node-red-with-snap/54614/1 "2021-12-02T01:11:05Z")

</div>

hello, everyone

I installed the nodered on ubuntu 18.04 with snap, now I want to enable the HTTPS Access and the Username/password based authentication, it takes me much time to find the setting.js file, at last, I found it here ''

I don't know if it means the setting.js file is located '/root/snap/node-red/675/setting.js'? what does the 675 mean here?  
then, I have to run this command to generate the password following the instruction, but the command line says it cannot find the command node-red,  
how should I run the command to generate password?  
could anyone give me some advice? thanks in advance

---

<div class="post-metadata">

**Author:** ![yang](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yang](https://discourse.nodered.org/u/yang)\
**Post date:** [2 December 2021 01:14 UTC](https://discourse.nodered.org/t/how-to-run-command-line-after-installing-the-node-red-with-snap/54614/2 "2021-12-02T01:14:33Z")

</div>

how can I upload a picture? each time it says something is wrong, please try again later

---

<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:** [2 December 2021 08:29 UTC](https://discourse.nodered.org/t/how-to-run-command-line-after-installing-the-node-red-with-snap/54614/3 "2021-12-02T08:29:07Z")

</div>

> [@yang](#):
>
> I installed the nodered on ubuntu 18.04 with snap,

Is there a reason you want to use the snap? Few of those here have experience with that. The recommended way of installing on Ubuntu is to use the [Ubuntu/Debian/Pi install script](https://nodered.org/docs/getting-started/raspberrypi) from the node red docs.

---

<div class="post-metadata">

**Author:** ![yang](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yang](https://discourse.nodered.org/u/yang)\
**Post date:** [2 December 2021 08:56 UTC](https://discourse.nodered.org/t/how-to-run-command-line-after-installing-the-node-red-with-snap/54614/4 "2021-12-02T08:56:48Z")

</div>

ok thanks for your feedback  
I will uninstall it and install it with npm again

---

<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:** [2 December 2021 09:11 UTC](https://discourse.nodered.org/t/how-to-run-command-line-after-installing-the-node-red-with-snap/54614/5 "2021-12-02T09:11:55Z")

</div>

> [@yang](#):
>
> install it with npm

No, use the script I referenced.

---

<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:** [31 January 2022 09:12 UTC](https://discourse.nodered.org/t/how-to-run-command-line-after-installing-the-node-red-with-snap/54614/6 "2022-01-31T09:12:05Z")

</div>

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