Upgrading Node on an Azure website?

后端 未结 4 1537
小鲜肉
小鲜肉 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:28

    2017 update. All above didn't work for me in.

    I changed:

    // package.json
    engines":{"node": "8.0.0"}
    

    and then I added app settings value

    
        
    
    

    I restarted an app million times, and the solution was to change iisnode.yml

    nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\8.0.0\node.exe"
    

    That's it. I hope it will help someone.

    Update

    Just to clarify things: I'm talking about App Service

    And if you ftp to your App you will see iisnode.yml here:

提交回复
热议问题