npm git protocol dependencies

git, npm

Solution

You can tell git to use https instead of git:// with the following command:

git config --global url."https://".insteadOf git://

Problem

At work we are behind an HTTP Proxy and the git protocol (port 9418) is denied. My project has NPM dependencies and some of these dependencies have dependencies that use the git protocol, for instance: In my `package.json` ``` "dependencies": { "jsdoc3" : "git+https://github.com/jsdoc3/jsdoc.git" } ``` and the `package.json` of jsdoc3: ``` "dependencies": { "crypto-browserify": "git://github.com/dominictarr/crypto-browserify.git#95c5d505", "github-flavored-markdown": "git://github.com/hegemonic/github-flavored-markdown.git" } ``` How can I get those dependencies, how to tell NPM to use `git+https://` protocol instead of `git://` protocol or to be able to use the git protocol? To simplify things I'm on windows (it would be easier on Linux to create an SSH tunnel), and I use GIT-Bash. Thanks

Original source

Related problems