0

I'm trying to install karma with npm on a computer not connected to the internet.

On a connected computer I executed "npm pack karma", took the tgz file and tried to run "npm install karma-0.10.4.tgz" but got this error:

npm ERR! network getaddrinfo ENOTFOUND

Any idea how to solve this? Thanks!

Shay Friedman
  • 4,808
  • 5
  • 35
  • 51
  • What happens when you add a relative path: `npm install ./karma-0.10.4.tgz`? – Alastair McCormack Nov 17 '13 at 10:33
  • It might be trying to installing a dependency. Have you seen npmbox as mentioned in: http://stackoverflow.com/questions/11295050/how-to-install-npm-g-on-offline-server ? – Alastair McCormack Nov 17 '13 at 12:45
  • npmbox looks good, but then I figured - "how do you install npmbox" on an offline machine? :) anyway, eventually I just copied my connected machine's npm folder to the offline machine and that's it. Probably not the best solution, but works perfectly for me. – Shay Friedman Nov 22 '13 at 10:36

0 Answers0