【问题标题】:Azure Static Web Apps: How to set the version of Node.js?Azure 静态 Web 应用:如何设置 Node.js 的版本?
【发布时间】:2021-02-10 18:31:45
【问题描述】:

我想使用 Node.js v12.x 构建和部署,但它使用 14.15.1:

Using Node version:
v14.15.1

Using Npm version:
6.14.8

【问题讨论】:

    标签: azure azure-static-web-app


    【解决方案1】:

    您可以通过 Azure CLI 设置所需的 node.js 版本: az webapp config set --resource-group <resource-group-name> --name <app-name> --linux-fx-version "NODE|12.X"

    欲了解更多信息,请参阅https://docs.microsoft.com/de-de/azure/app-service/configure-language-nodejs?pivots=platform-linux#set-nodejs-version

    【讨论】:

      猜你喜欢
      • 2021-05-12
      • 2020-11-20
      • 2020-06-23
      • 2021-05-23
      • 1970-01-01
      • 2021-04-12
      • 1970-01-01
      • 1970-01-01
      • 2018-11-10
      相关资源
      最近更新 更多