npm安装git上的包

package.json

Git urls can be of the form:

git://github.com/user/project.git#commit-ish
git+ssh://user@hostname:project.git#commit-ish
git+http://user@hostname/project/blah.git#commit-ish
git+https://user@hostname/project/blah.git#commit-ish

The commit-ish can be any tag, sha, or branch which can be supplied as an argument to git checkout. The default is master.

 解读各个内容:

  

 

posted @ 2017-04-01 14:11  jay-  阅读(1904)  评论(0)    收藏  举报