用npm安装git上的项目

直接通过 git 上项目的地址进行安装
npm install git+https://github.com/sunxiaochuan/koatest.git

地址获取如下图:

原文地址:https://www.cnblogs.com/longailong/p/10531692.html