Git仓库到package.json中的依赖项 [英] Git repository to a dependency in package.json
本文介绍了Git仓库到package.json中的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个git存储库,想将此存储库用作其他项目的package.json文件中的依赖项,以便可以在运行npm命令时下载该存储库. 有人可以帮我吗?
I am having a git repository and want to use this repository as a dependency in package.json file of some other project so that it can be downloaded as we run npm command. can anyone help me out?
推荐答案
尝试一下.
"dependencies": {
"<repo>": "<user>/<repo>#<branch>",
}
示例:
"dependencies": {
"botkit": "jonchurch/botkit#master",
}
这篇关于Git仓库到package.json中的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文