gpt4 book ai didi

javascript - 没有为链接的 github url 下载 package-lock.json

转载 作者:行者123 更新时间:2023-11-30 20:36:15 28 4
gpt4 key购买 nike

我有 2 个 github 项目。假设一个是“mylibrary”,另一个是“test-project”

我已将“test-project”中的“mylibary”链接为 GitHub URL。所以 package.json 如下所示。

dependencies: {
"mylibrary": "git+ssh://git@github.com/user/mylibrary.git"
}

当我执行 npm install 时,“mylibrary”被下载并放置在“node_modules”中

但是我的库的克隆版本没有package-lock.json

ls node_modules/mylibrary | grep package-lock

没有结果

任何帮助都会很棒。谢谢。

最佳答案

这是设计使然。来自 npm documentation

One key detail about package-lock.json is that it cannot be published, and it will be ignored if found in any place other than the toplevel package.

关于javascript - 没有为链接的 github url 下载 package-lock.json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49813855/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com