与 Azure 功能标志库一起使用所需的最低 Node 版本是多少?

问题描述 投票:0回答:1

我正在开发一个旧版应用程序,其 Node 版本约为 14.2。它不适用于 Azure 功能标志库。为了能够使用这些库,我需要达到的最低 Node 版本是多少?

node.js azure
1个回答
0
投票

我尝试使用 Node 14.2 创建应用程序,但没有成功。我收到以下错误:

enter image description here

错误:已知 npm v10.2.5 无法在 Node.js v14.21.3 上运行。此版本的 npm 支持以下节点版本:

^18.17.0 || >=20.5.0

为了避免上述错误,我尝试将 npm 版本降级到 8.11.0,但这是不可能的。

enter image description here

所以,尝试将 Node 版本升级到 18 或 20。

我在 Node 版本 18 中尝试过。 这里我可以成功安装@azure/app-configuration。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.