git - 如何从 pull 请求安装包?

标签 git github npm

我想从 npm ng2-table 安装一个包,但带有 pull request that is not merged to master .
无论如何要在我的 package.json 上添加此 pull 请求在我的应用程序上安装这个提交而不是 master master?

最佳答案

您可以指定创建 PR 的分支或提交的 GitHub URL。您应该指定提交哈希而不是分支,以便将来不会意外地将其他(可能是恶意的)更改发布到该分支。

例如:

"package": user/repo#commit

Documentation

关于git - 如何从 pull 请求安装包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47210023/

相关文章:

node.js - kadirahq/mup 验证部署失败

git - 你如何使用 git-cache-meta?

git add 抛出警告 "CRLF will be replaced by LF in <file-name>"

git - 如何修复 Mercurial 卡在 Git subrepo 推送上?

eclipse - 如何成功地将 Egit 与 GitHub 结合使用?

node.js - 安装 Node v0.8.15 后 npm 在 mac os x 上不工作

javascript - react-scripts build thenserve 正在提供 html,而不是 main.js 文件

c# - 我如何在 Git 中处理 Visual Studio 解决方案和项目文件?

git - 如何查找 git 存储库的最后几次提交

git - 我不能再 git push 到 github : error: RPC failed; curl 55 Send failure: Connection was aborted