Kudu npm install failed

后端 未结 1 1214
南旧
南旧 2021-01-22 10:17

I\'m getting a very strange error when trying to deploy my project with kudu on Azure.

I have build my project with dotnet with VueJs. I have used the following templat

相关标签:
1条回答
  • 2021-01-22 11:08

    According to your error information, your issue was caused by the incorrect Node version obviously. The one of the prerequisites of GitHub repo you used is NodeJS >= 8.9.4, but now it's v0.10.40 on your Azure WebApp. As you said, the WEBSITE_NODE_DEFAULT_VERSION setting has beed added, but it seems not work.

    I followed the document to add the same setting and click Save on Azure portal as the figure below, then immediately my kudu console restarted and check my node & npm version which be correct.

    So my suggestion is:

    1. Please check your WEBSITE_NODE_DEFAULT_VERSION setting whether be added in the correct field.
    2. You can try to restart your Azure WebApp manually to make the change works.
    0 讨论(0)
提交回复
热议问题