简体   繁体   English

无法读取https SSL上的nodejs中未定义的属性'NODE_ENV'

[英]Cannot read property 'NODE_ENV' of undefined in nodejs on https SSL

I have install the ssl certificate in my angular and nodejs project. 我已经在我的angular和nodejs项目中安装了ssl证书。 but after installing the certificate i am unable to login into my application. 但是安装证书后,我无法登录到我的应用程序。 My main index.js file is running perfectly, but when i am tried to login from my application, it showingn me 500 (Internal Server Error) with a message (Cannot read property 'NODE_ENV' of undefined). 我的主要index.js文件运行良好,但是当我尝试从应用程序登录时,它显示500(内部服务器错误)并显示一条消息(无法读取未定义的属性“ NODE_ENV”)。 I am showing you the localhost but the same problem is coming on production.Please help me out here, how can i fix it. 我正在向您显示localhost,但生产中也会遇到相同的问题。请在这里帮助我,我该如何解决。

My error image of application 我的应用错误图片

My nodejs console working picture 我的Node.js控制台工作图

It's not HTTPS SSL problem. 这不是HTTPS SSL问题。 Seems that the problem is on the file which defines a handler for POST /login , attach this file for more details. 似乎问题出在定义POST /login处理程序的文件上,请附加此文件以获取更多详细信息。

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

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