看大神视频的碰到了这个错误提示
E:\nodetest>node server.js
_http_outgoing.js:360
throw new TypeError('The header content contains invalid characters');
^
TypeError: The header content contains invalid characters
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:360:11)
at E:\nodetest\node_modules\express-static\index.js:48:11
at FSReqWrap.oncomplete (fs.js:123:15)
解决方法:
at E:\nodetest\node_modules\express-static\index.js:48:11
找到这个文件下 index.js的48行删除这行就好使了。