Flow-typed : UNCAUGHT ERROR: Error: Invalid npm libdef version! It appears to be a non-continugous range

Flow-typed : UNCAUGHT ERROR: Error: Invalid npm libdef version! It appears to be a non-continugous range

我在尝试安装流类型时收到关注

yarn run flow-typed install

错误

• Found 29 dependencies in package.json to install libdefs for. Searching...
• flow-typed cache not found, fetching from GitHub...
UNCAUGHT ERROR: Error: Invalid npm libdef version! It appears to be a non-continugous range.
    at pkgVersionMatch (/home/.../projectName/node_modules/flow-typed/dist/lib/npm/npmLibDefs.js:256:11)
    at /home/.../projectName/node_modules/flow-typed/dist/lib/npm/npmLibDefs.js:281:82
    at Array.filter (<anonymous>)
    at filterLibDefs (/home/.../projectName/node_modules/flow-typed/dist/lib/npm/npmLibDefs.js:275:15)
    at findNpmLibDef (/home/k.../projectName/node_modules/flow-typed/dist/lib/npm/npmLibDefs.js:329:27)
    at async /home/.../projectName/node_modules/flow-typed/dist/commands/install.js:273:20
    at async Promise.all (index 20)
    at async installNpmLibDefs (/home/.../projectName/node_modules/flow-typed/dist/commands/install.js:268:3)
    at async Object.run (/home/.../projectName/node_modules/flow-typed/dist/commands/install.js:149:27)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我尝试了什么?

https://github.com/flow-typed/flow-typed/issues/3988#issuecomment-768598799

这为我修复了它,请检查您的 flowbin 依赖项不包含 ^

此问题是由流式安装程序的流式 cli (semver) 的松散依赖性引起的。此问题已修复,我们已锁定版本。

要解决此问题,请更新 v3.2.1(至 v3.3.0)。

修复参考+解释:https://github.com/flow-typed/flow-typed/pull/4018