简体   繁体   English

在Azure中创建NodeJS Web应用程序失败

[英]Creation of a NodeJS web app in Azure fails

Using this official Azure tutorial , I was able to perform all the steps until the step Browse to the app where when I browse to the app using http://myNodeJsTestApp.azurewebsites.net I get the following error: 使用此官方Azure教程 ,我能够执行所有步骤,直到Browse to the app这一步,当我使用http://myNodeJsTestApp.azurewebsites.net浏览至应用程序时,出现以下错误:

The page cannot be displayed because an internal server error has occurred. 由于发生内部服务器错误,因此无法显示该页面。

Please note that using same URL that tutorial asks us to use in step Set Node.js runtime of the tutorial, I was able to successfully display the exact same screen shown in that section. 请注意,使用与教程要求我们在教程的步骤Set Node.js runtime中使用的URL相同的URL,我能够成功显示该部分中显示的完全相同的屏幕。 So the error is occurring after I got to the step Browse to the app further down. 因此,在我进一步Browse to the app步骤之后,就会发生错误。 I'm using NodeJS version 8.12.0 . 我正在使用NodeJS version 8.12.0

If you follow exactly the steps and don't modify the sample code, the only fault causing Internal server error is the node version 8.12.0. 如果完全按照这些步骤操作,并且不修改示例代码,则导致内部服务器错误的唯一故障是节点版本8.12.0。

Azure server doesn't install Node.js of all existing versions, go https://yourwebappname.scm.azurewebsites.net/api/diagnostics/runtime to check available ones. Azure服务器不会安装所有现有版本的Node.js,请访问https://yourwebappname.scm.azurewebsites.net/api/diagnostics/runtime来检查可用版本。

I recommend to use 8.11.1 LTS version as the tutorial suggests, or you can choose 10.6.0 the latest on Azure. 我建议按照本教程的建议使用8.11.1 LTS版本,也可以选择Azure上的最新版本10.6.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM