3

I am trying to setup Jenkins to do tsc but the build machine will not have internet access. To facilitate this I need to bundle the node_modules from another box with internet access and copy it over to the build machine and use this bundle to do npm install. In effect, I am trying to replicate maven's local repository structure to prevent npm install from accessing npm's repository. Is there a way to achieve this? From what I saw, npm pack facilitates deployment but not what I am trying to achieve, I need node_modules so I can compile on the build machine. Also, it is a windows machine so no luck with offline-npm.

Kees de Kooter
  • 7,078
  • 5
  • 38
  • 45
Kiran
  • 159
  • 1
  • 3
  • 11
  • Possible duplicate of [How can I switch between a linked npm dependency (in development) and an installed dependency (in staging/prod)?](http://stackoverflow.com/questions/36043423/how-can-i-switch-between-a-linked-npm-dependency-in-development-and-an-install) – Paul Sweatte Dec 28 '16 at 17:25

0 Answers0