0

从昨晚开始,我收到以下错误:

npm ERR! code ENOAUDIT
npm ERR! audit Your configured registry (https://registry.npmjs.org/) does not support audit requests.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ransinha/.npm/_logs/2018-11-28T18_19_35_432Z-debug.log

我最近没有进行任何更改。https://github.com/verdaccio/verdaccio/issues/689建议更改 config.yaml 文件。我的文件夹中没有看到任何 config.yaml 文件。我也没有使用 verdaccio。不知道如何解决这个问题。有任何想法吗?

更新:npm 审计显示以下内容:

                   === npm audit security report ===                        

┌────────────────────────────────────────────────── ──────────────────────── │ 人工审核 │ │ 一些漏洞需要您注意解决
│ 访问https://go.npm.me/audit-指导如需额外指导│ └──────────────────────────────────────────── ──────────────────────────── ┌────────────────┬───── ────────────────────────────────────────────────── ── │ 严重 │ 恶意包 │ ├────────────────┼──────────────────────── ────────────────────────────── │ 软件包│ flatmap-stream │ ├────────── ──────┼──────────────────────────────────────────── ────────────── │ 已打补丁 │ 无可用补丁 │ ├────────────────┼──────────── ──────────────────────────────────────────── │ nodemon的依赖关系[开发] │ ├───────────────┼──────────────────────────── ──────────────────────────── │ 路径│ nodemon > pstree.remy >ps-tree > event-stream > │ │ │ flatmap-stream │ ├────────────────┼────────────────── ────────────────────────────────────── │ 更多信息 │https://nodesecurity.io/advisories/737 │</p>

4

2 回答 2

2

根据更多信息链接,建议您使用 event-stream@3.3.4

去做这个:

1、删除flatmap-stream的node_modules文件夹

2、编辑 package-lock.json 文件,我想在 ps_tree 对象下添加/编辑依赖项,如下图所示:

"requires": {
    "event-stream": "~3.3.0"
},
"dependencies": {
    "event-stream": {
        "version": "3.3.4"
    }
}

再次运行 npm install ,这应该可以解决它

于 2018-11-29T11:12:37.120 回答
1

删除package-lock.jsonnpm i为我工作。

于 2021-07-27T07:30:38.390 回答