arei / npmbox

Utility for creating (boxing) and using (unboxing) an archive of a complete (including all dependencies) npm install.
MIT License
245 stars 34 forks source link

Fix for possible issue with offline installs #42

Closed jgainfort closed 8 years ago

jgainfort commented 9 years ago

I, like some people who wrote previous issues, had problems trying to install packages offline using the suggested method.

Everytime I would try to npmubox the following error would appear:

{ [Error: getaddrinfo ESRCH] code: 'ESRCH', errno: 'ESRCH', syscall: 'getaddrinfo' }

What I found that fixes this problem was to clear my npm cache before boxing and unboxing the desired package.

So on online machine:

npm cache clean npmbox

Offline machine:

npm cache clean npmunbox

Instead of posting this in every question that is open maybe this could be added to the README?

arei commented 9 years ago

Pull Request welcome.

jgainfort commented 9 years ago

@arei

Ok, I can have one tomorrow.