Upgrading Node on an Azure website?

后端 未结 4 1534
小鲜肉
小鲜肉 2020-11-30 09:06

I\'m trying to run some pre deployment tasks (unit tests etc) with NPM on an Azure website, however the version of node on the VM is v0.10.32, the current version of node is

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 09:38

    Changing NodeJs Version in Azure Portal

    Navigate to your web app in azure portal Click on Application settings in Settings blade. You can include WEBSITE_NODE_DEFAULT_VERSION as key and version of nodejs you want as value in app settings.

    Example: WEBSITE_NODE_DEFAULT_VERSION 8.0.0

提交回复
热议问题