1

As mentioned by @NS Gopikrishnan in this question there was an npmzip tool that we could use to create npm install packages that include all dependancies for that package.

Unfortunately npmzip is no longer available.

I would be very interested in creating offline install packages that include all dependancies. Does anyone know of an alternative to npmzip that does this for me?

Community
  • 1
  • 1
Forza
  • 1,619
  • 3
  • 28
  • 49

2 Answers2

1

According to @kamil's answer in this question there's indeed an alternative to npmzip. It is called npmbox

Community
  • 1
  • 1
Forza
  • 1,619
  • 3
  • 28
  • 49
0
  1. In online environment, npm install --no-bin-link. You will have a entire flattened node_modules
  2. Then, bundle this flawless node_modules with tar / zip / rar / 7z etc
  3. In offline environment, extract the bundle, that's it

P.S node-pac is another option, but it can't deal with the packages which still need downloading something for installation.

kenberkeley
  • 8,449
  • 3
  • 35
  • 25