'How to solve discarded git protocol over https or ssh issue

Github Discarded git protocol over https or ssh .

To read more about here - Improving Git protocol security on GitHub

Package won't work using git:// protocol



Solution 1:[1]

Fixes I Did in node js

  • Added script "preinstall": "git config --global url."https://".insteadOf git://"
  • Added unsafe-perm = true In .npmrc file. (optional if u getting some write permission issue )

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1