# Node.js - a dumb question (and off topic)

**URL:** <https://discourse.nodered.org/t/node-js-a-dumb-question-and-off-topic/13386>\
**Category:** General\
**Created:** [17 July 2019 08:51 UTC](https://discourse.nodered.org/t/node-js-a-dumb-question-and-off-topic/13386 "2019-07-17T08:51:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [17 July 2019 08:51 UTC](https://discourse.nodered.org/t/node-js-a-dumb-question-and-off-topic/13386/1 "2019-07-17T08:51:27Z")

</div>

Yeah,

So it has been determined that I have Node.js installed.

I'm still coming to grips with where Ubuntu puts its programs, so I am at a loss how to invoke it.

So I type `node` from the cli.

How do I exit when done?

`quit` doesn't work. `exit` doesn't work.  
`< ctl > d`?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [17 July 2019 08:54 UTC](https://discourse.nodered.org/t/node-js-a-dumb-question-and-off-topic/13386/2 "2019-07-17T08:54:11Z")

</div>

[https://www.google.com/search?client=safari&rls=en&q=how+to+exit+node+js+command+prompt&ie=UTF-8&oe=UTF-8](https://www.google.com/search?client=safari&rls=en&q=how+to+exit+node+js+command+prompt&ie=UTF-8&oe=UTF-8)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [17 July 2019 08:54 UTC](https://discourse.nodered.org/t/node-js-a-dumb-question-and-off-topic/13386/3 "2019-07-17T08:54:12Z")

</div>

`process.exit()`  
`.exit`

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [17 July 2019 08:56 UTC](https://discourse.nodered.org/t/node-js-a-dumb-question-and-off-topic/13386/4 "2019-07-17T08:56:24Z")

</div>

Thanks both.

I am just going through youtube getting some (more) JS videos.

I opened a session and was stuck how to exit.

Sorry I can't mark 2 as the solution.  
No offence UKmoose.

---

<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:** [17 July 2019 09:27 UTC](https://discourse.nodered.org/t/node-js-a-dumb-question-and-off-topic/13386/5 "2019-07-17T09:27:08Z")

</div>

> [@Trying\_to\_learn](#):
>
> `< ctl > d` ?

Yes - that will exit as well.

---

<div class="post-metadata">

**Author:** ![michaelblight](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/michaelblight/32/445_2.png) [@michaelblight](https://discourse.nodered.org/u/michaelblight)\
**Post date:** [19 July 2019 04:34 UTC](https://discourse.nodered.org/t/node-js-a-dumb-question-and-off-topic/13386/6 "2019-07-19T04:34:49Z")

</div>

The subtle point that @ukmoose makes is that Google is your friend. Start there. Every problem you will ever have in life has been experienced by somebody before and probably stored on the Internet for your use.
