node.js在执行js文件时出现SystaxError:Unexpected token LILEGAL的错误

来源:互联网 发布:淘宝店招上怎么加链接 编辑:程序博客网 时间:2024/06/05 09:06
var http = require('http');   http.createServer(function (request, response) {   response.writeHead(200, {'Content-Type': 'text/plain'});response.end('Hello World\n');}).listen(8888);// 终端打印如下信息console.log('Server running at http://127.0.0.1:8888/');

这里写图片描述

出现这个的问题 一般都是语法,好好检查对应的js文件 比如少分号,少对应的括号,

0 0