3 ms·
> I am from a country where I can no longer access npm without tor, and even then it is so excruciatingly slow as to be unusable. Since it seems you can access
by DiThi 9y ago
> I am from a country where I can no longer access npm without tor, and even then it is so excruciatingly slow as to be unusable.
Since it seems you can access github, you can install dependencies without touching npmjs, with one of these:
npm install git+ssh://git@github.com:<githubname>/<githubrepo.git[#<commit-ish>]
npm install git+ssh://git@github.com:<githubname>/<githubrepo.git>[#semver:^x.x]
npm install git+https://git@github.com/<githubname>/<githubrepo.git>
npm install git://github.com/<githubname>/<githubrepo.git>
npm install github:<githubname>/<githubrepo>[#<commit-ish>]
(add --save if your npm is old)
Why would a country ban npmjs?
- FailorTwist 9y ago> Why would a country ban npmjs? that is also what I keep asking myself. those in charge of censorship are not especially educated people (they are mostly young clerics/government devoutees), and a website's number of visitors along with its background color (yes) is just enough reason for them to take it out of reach. Somewhat appalling, but you get used to it. For the record, npm worked (and worked well),like, ten months ago. But now it doesn't, not easily at least. I tried my luck with polipo/tor, but it was so slow and disconnected so frequently that I gave up. I now only use npm to publish, and that is still something I don't want to think about until the very last minute.