【发布时间】:2019-12-04 07:32:41
【问题描述】:
想要安装包com.cordova.plugin.cache 及其内容我需要它也是cordova-plugin-cache..
示例package.json 是这样的:
"dependencies": {
// Note these two are the same but with different name
"cordova-plugin-cache": "git+git@gitlab.com:dev/library/org.git",
"com.cordova.plugin.cache": "git+git@gitlab.com:dev/library/org.git"
}
但是我在私有 npm 存储库上发布了它的修改版本,以删除依赖作为存储库。
"dependencies": {
// Note these two are the same but with different package name
"cordova-plugin-cache": "git+git@gitlab.com:dev/library/org.git",
"com.cordova.plugin.cache": "git+git@gitlab.com:dev/library/org.git"
}
这甚至可能吗?我必须保存两个包,因为它们是两个不同的包吗?
实际上我在私有 npm 注册表中有一个包,但不想复制该项目。
欢迎任何提示。
【问题讨论】:
标签: node.js cordova npm cordova-plugins