NodeJs:Express应用程序不在Windows中启动 [英] NodeJs: Express app don't start in windows

查看:187
本文介绍了NodeJs:Express应用程序不在Windows中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从node.js和express框架开始,遵循本教程:

I'm just starting with node.js and express framework, following this tutorial:

http://expressjs.com/starter/generator.html

在控制台中运行 express myapp cd myapp&&& npm install 当我运行 node app.js 没有任何反应。该命令立即返回,而我期待它等待传入的消息。没有显示任何错误。我在Windows 7 x64上,命令是从ADMIN控制台运行的。
任何帮助将不胜感激。

After running in console express myapp and cd myapp && npm install when I run node app.js nothing happens. The command returns immediately, while I was expecting it to wait for incoming messages. No error are shown either. I'm on Windows 7 x64 and the commands are run from an ADMIN console. Any help will be appreciated.

推荐答案

本教程说要运行

set DEBUG=myapp & node ./bin/www

您不运行

node app.js

表达v4.x

这篇关于NodeJs:Express应用程序不在Windows中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆