我正在学习node.js,尝试使用命令
感谢您的帮助。
node app.js
运行app.js文件,但终端没有任何返回(也没有错误)。以下是我遵循的步骤:
$ brew install node
$ sudo npm install -g express
$ sudo npm install -g express-generator
在进入我创建的新文件夹后运行
$ express testsite --hogan -c less
$ cd testsite && npm install
最后
$ node app.js
//没有错误返回,但除了新的命令行以外没有任何回应...感谢您的帮助。
Express server listening on port 3001
。命令http.createServer(app).listen(app.get('port'), function(){});
不应该结束进程 - 它是否存在? - Ethan Micknode -v
究竟会给你什么? - Bradnode start
。 - Swanidhi