Depreciation warning does not allow deploying an Application on AZURE,

后端 未结 1 1562
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 05:00

I get the following warning while deploying my application to AZURE.

(node:6568) [DEP0064] DeprecationWarning: tls.createSecurePair() is deprecated. Ple

相关标签:
1条回答
  • 2021-01-29 05:33

    I know this question is already 8 month old, but just for completeness I am going to provide the answer on how to suppress warnings for Node in Azure. There is actually multiple ways:

    Using iisnode.yml

    Just put the following line in the iisnode.yml:

    nodeProcessCommandLine: node.exe --no-deprecation --no-warnings
    

    Or if you use a full path to a version of Node, you'll need to quote it, e.g.

    nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\10.6.0\node.exe" --no-deprecation --no-warnings
    

    Using web.config

    Toward the end of the file, you'll see a commented out tag. Replace it by something like this:

    <iisnode nodeProcessCommandLine="node.exe --no-deprecation --no-warnings"/>
    

    Notes

    iisnode.yml takes precedence over web.config

    See the original post on how to add runtime flags in Azure here: Pass flags to NodeJS's Chrome V8 engine in Azure Web Apps

    0 讨论(0)
提交回复
热议问题