如何将npm依赖项指定为github子文件夹url? [英] How to specify npm dependency as github subfolder url?
本文介绍了如何将npm依赖项指定为github子文件夹url?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的git存储库:
README.md
packages
common
package.json
main
package.json
如何在 main
package.json中将 common
依赖关系指定为github子文件夹url?
How to specify common
dependency in main
package.json as github subfolder url?
这不起作用"common":"git://github.com/< user>/< project>/packages/common.git"
推荐答案
NPM似乎不支持此功能,并且NPM团队似乎对支持此功能没有兴趣.
It looks like this is not supported by NPM, and the NPM team appears to have no interest in supporting this functionality.
https://github.com/npm/npm/issues/2974
这篇关于如何将npm依赖项指定为github子文件夹url?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文