gpt4 book ai didi

node.js - 如何将 npm 包更新到最新提交?

转载 作者:太空宇宙 更新时间:2023-11-03 23:16:59 25 4
gpt4 key购买 nike

事件流包中的漏洞概述 here这意味着我在尝试构建应用程序时收到以下错误。

error An unexpected error occurred: "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz: Request failed \"404 Not Found\"".

经过一番挖掘,我意识到 mongo-cursor-pagination我使用的包依赖于 mongodb-extended-json ,这又取决于恶意事件流包。

经过更多搜索后,很明显维护者已经更新了有问题的依赖项,如 this commit 所示。 .

但是,latest release v7.1.0 于 2018 年 6 月 28 日发布,不包含这些更改。

本质上,我希望我的代码包含对 mongo-cursor-pagination 的最新提交,但我不确定如何实现这一点。

最佳答案

根据文档,您可以使用 commit sh 设置 git repo 的链接像这样:

git+https://github.com/mixmaxhq/mongo-cursor-pagination.git#40c3f8d

https://docs.npmjs.com/cli/install

npm install private github repositories by dependency in package.json

关于node.js - 如何将 npm 包更新到最新提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54193097/

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