所以我运行一个简单明确的Web应用程序,我安装nodemon模块,所以我没有重新启动服务器,但显然有错误错误启动服务器
这是错误
events.js:141
throw er; // Unhandled 'error' event
我通过NPM安装nodemon和我安装了它在全球范围(到应用程序数据/ NPM) 我的服务器代码非常简单,在这里:
const EXPR = require('express');
// set up express app
const APP = EXPR();
// Handle get request
APP.get('/', function(req, res){
console.log('GET request');
res.send({"name":"Yoshi"});
});
// listen for request
APP.listen(process.env.port || 2000, function(){
console.log("Now listening for request !");
);
任何人都可以帮助我,我真的希望这个功能,因为它非常方便nodejs,非常感谢!
你的“节点索引”工作正常吗?以及您正在使用的操作系统? –