Reputation: 566
Problem:
I have a very flaky internet connection at my place. Due to this when I try to do
npm install -g glup
it stops the download before completion. I have tried downloading several times but all in vain.
Thinking about my options
I have a friend in other city with high speed internet, I can ask him to somehow package the glup
and provided it to me using dropbox, then i can use any download manager to download it partially with my flaky connection.
But the sad thing is he doesn't know how to do it. (help on this front is also appreciated)
Can anyone help me out with this situation?
P.S: I am doing a course from Udacity and due to my flaky internet connection I am kind of facing lot of issues.
Upvotes: 3
Views: 5098
Reputation: 1376
Not answering directly your question, but I was just struggling with network connection behind a corporate firewall with npm for hours. Then I tried yarn, the package manager from Facebook. Wow, it worked like a charm, install of the package I needed plus deps. done within a minute.
Upvotes: 0
Reputation: 8121
According to the docs, npm install
supports installing from a tarball file sitting on your filesystem. So, as long as your friend can create and supply you a tarball of the npm package you are looking for - you should be good to go.
Below is a quote from the docs.
UPDATE: To create a tarball file from an npm package, you can just run npm pack package_name
. For example,
npm pack underscore
will create a .tgz
file for the latest version of underscore.js
npm package. See the documentation for npm pack
here.
Upvotes: 5