最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Updating GitHub dependency with npm - Stack Overflow

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论