# Can I package whole nodered project using pkg node?

**URL:** <https://discourse.nodered.org/t/can-i-package-whole-nodered-project-using-pkg-node/56271>\
**Category:** General\
**Created:** [7 January 2022 22:08 UTC](https://discourse.nodered.org/t/can-i-package-whole-nodered-project-using-pkg-node/56271 "2022-01-07T22:08:04Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [8 January 2022 12:50 UTC](https://discourse.nodered.org/t/can-i-package-whole-nodered-project-using-pkg-node/56271/6 "2022-01-08T12:50:46Z")

</div>

Hi @TotallyInformation I actually managed it using pkg.  
by adding this package.json  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/7/073918b7886c2875af4666e161ad395b47f867c6.png)

Then run "pkg ."

It has 3 outputs for different OS:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/92b3fe3fd87e4429693af8cf948eebc77191613e.png)

then I can use the .exe file on my command prompt, I just need to put --userDir arguments.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/8/38d361e03c0f6e2ae2a65566dad68d395c34ed5b.png)

And it works just like "npm start" on your alternate-installer.

The advantage of doing this is you just have to copy the node-red-master-win.exe to any other computer along with the "data" folder. and you can run node-red on any computer 🙂  
Without installing nodejs.

Thanks!

Regards,  
Henjoe

---

_[View the full topic](https://discourse.nodered.org/t/can-i-package-whole-nodered-project-using-pkg-node/56271)._
