为什么我无法运行我的node.js express web应用程序 [英] Why can't I run my node.js express web application
本文介绍了为什么我无法运行我的node.js express web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Windows似乎不了解这个命令。我可以通过调用节点来运行它./bin/www
我是否缺少某些东西?
解决方案
您尝试设置DEBUG = my-application
,后跟节点./bin/www
? Windows不允许以Linux和其他人的方式设置环境变量。
Node.js and the express generator are really handy and simple to understand. I cannot however get my server to start by running c:\my-application-root>DEBUG=my-application ./bin/www
Windows doesn’t seem to understand that command. I can however run it by calling node ./bin/www
Am i missing something?
解决方案
Did you try set DEBUG=my-application
followed by node ./bin/www
? Windows does not allow setting an environment variable in the way that Linux and others do.
这篇关于为什么我无法运行我的node.js express web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文