# \[Question\] Best way to install modules to an offline pc

**URL:** https://discourse.nodered.org/t/question-best-way-to-install-modules-to-an-offline-pc/20902
**Category:** General
**Created:** [27 January 2020 09:04 UTC](https://discourse.nodered.org/t/question-best-way-to-install-modules-to-an-offline-pc/20902 "2020-01-27T09:04:43Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [27 January 2020 09:50 UTC](https://discourse.nodered.org/t/question-best-way-to-install-modules-to-an-offline-pc/20902/4 "2020-01-27T09:50:35Z")

</div>

I think the solution is the same.  
Just run `npm install node-red-contrib-s7` in the NR workspace of your _online_ machine, and copy the whole workspace to your _offline_ machine (important is the `node_modules` dir).  
By workspace I mean the directory where your `flows.json` resides. I don't recommend installing nodes globally.

In principle, this is how I do it all the time, as our customers' production machines have no internet connection.

No npm cache needed.  
"npm pack" is for building an archive when developing packages.

---

_[View the full topic](https://discourse.nodered.org/t/question-best-way-to-install-modules-to-an-offline-pc/20902)._
