admin 管理员组文章数量: 1086019
I am consuming a GitHub repo through npm, pointing to a specific tag. It looks like this in the package.json
:
"dependencies": {
...
"my-repo": "github:foo/bar#tag"
}
Currently if I update the repo and upload a new tag, I have to manually delete the my-repo
folder under node_modules
and delete the entry from the package-lock.json
to force npm to update to the desired tag version. Is there a way to inform npm that it needs to update the package?
Using the tag here doesn't really make a difference, it was just an attempt to get it working.
本文标签: Updating GitHub dependency with npmStack Overflow
版权声明:本文标题:Updating GitHub dependency with npm - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744078943a2529875.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论