Reputation: 4249
I am behind a firewall and I believe git connection at 9418 are getting blocked. So I want to install a repository via npm (mysam https://github.com/mysamai/mysam). I tried installing directly with
npm --proxy <proxy-details> install -g mysam
Which fails saying -
fatal: Unable to look up github.com (port 9418) (No such host is known. )
So to avoid that I downloaded zip of the git repository and found on internet to use
cd package-folder
npm link
However that also fails stating same error. Is there any option to install the locally downloaded repository.
Thanks
Upvotes: 1
Views: 1098
Reputation: 16844
Using npm without an internet connection just does not work.
This is how we worked around this for a fully isolated node project:
npm install
calls.node_modles/**/bin/**
folder to .gitignore
.npm rebuild
to make sure you have all the tooling availbable.Of course this means to add node_modules
to GIT or whatever SCM you are using.
Upvotes: 1