# Node.js

**URL:** <https://forums.unrealengine.com/t/node-js/128957>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [July 20, 2019, 5:02am UTC](https://forums.unrealengine.com/t/node-js/128957 "2019-07-20T05:02:28Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc5f977f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc5f977f](https://forums.unrealengine.com/u/anonymous_user_bc5f977f)\
**Post date:** [September 8, 2021, 1:53pm UTC](https://forums.unrealengine.com/t/node-js/128957/21 "2021-09-08T13:53:49Z")

</div>

Okay, so it seems that sometimes when I PIE the Main Script does not connect.  
When it successfully does, after about a minute SocketIO just disconnects (CLOSE\_REASON\_NORMAL) and then I have to restart the editor to be able to make the nodejs script run again.

Any help?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc5f977f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc5f977f](https://forums.unrealengine.com/u/anonymous_user_bc5f977f)\
**Post date:** [September 10, 2021, 6:57am UTC](https://forums.unrealengine.com/t/node-js/128957/22 "2021-09-10T06:57:09Z")

</div>

I stumbled upon the answer to my own question. So, the script I am running requires me to install node modules in the Scripts folder. When I try calling the ipc-event-emitter module from the script, it cannot find it in the Scripts folder. I tried installing the node-ipc-event-emitter directly into the Scripts folder but I think there’s some necessary modules that are not included in that installation (I would be forever grateful if you could point me towards the right one).

So, I copy/pasted _only_ the node\_modules folder from Plugins\nodejs-ue4\Content\Scripts and skipped any repeated files to make sure I had all necessary modules present in the Scripts folder.

Worked like a charm.

---

<div class="post-metadata">

**Author:** ![Kallari\_JG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kallari\_JG](https://forums.unrealengine.com/u/Kallari_JG)\
**Post date:** [May 15, 2022, 10:13am UTC](https://forums.unrealengine.com/t/node-js/128957/23 "2022-05-15T10:13:48Z")

</div>

Do I need Node.js installed on other computers, if I want to play a (already packaged) game with this plugin?

---

<div class="post-metadata">

**Author:** ![getnamo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/getnamo/32/1194624_2.png) [@getnamo](https://forums.unrealengine.com/u/getnamo)\
**Post date:** [May 29, 2022, 12:05am UTC](https://forums.unrealengine.com/t/node-js/128957/24 "2022-05-29T00:05:49Z")

</div>

The packaged project should force the plugin to include a local embedded node and npm, but may have to just add a folder to package copying step in settings for everything to work as expected.

See [GitHub - getnamo/NodeJs-Unreal: Embed node.js as an Unreal Engine plugin.](https://github.com/getnamo/NodeJs-Unreal#packaging) for details.

---

<div class="post-metadata">

**Author:** ![Joneshong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joneshong](https://forums.unrealengine.com/u/Joneshong)\
**Post date:** [July 28, 2022, 12:53am UTC](https://forums.unrealengine.com/t/node-js/128957/25 "2022-07-28T00:53:36Z")

</div>

Thank you for sharing amazing plugins!!  
I want to share my setup for you.

I am coding in Angular and Nestjs at the same time. So I am familiar with Typescript. I use [Nrwl](https://tinyurl.com/mv3xrhxs) to manage my base setting.

```shell
$ npx create-nx-workspace
$ npm install @nrwl/node
$ nx generate @nrwl/node:app main

```

You will get something like this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/d/58db4b4e0689c7d7ba16b4c90471c178efc1bb04.png)

We can watch the project by

```shell
$ npm start

```

In NodeJs-Unreal make sure your script path.  
`dist\apps\{ProjectName}\main.js`

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/9/3093a7837ae764ed54fe97f7165baf368c8f142d.png)

Enjoy using it! I use this plugin as extendtion for Unreal. It’s perfect solution for me.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/6/196ad0a71176af52dcca4f298fe79db9a6dbf4e8.png)

[Previous page](https://forums.unrealengine.com/t/node-js/128957.md?page=1)
