Http_outgoing JS Error: The header content contains invalid characters
[Thu, 07:48:50 GMT] "GET/" "mozilla/5.0 (IPhone; CPU iPhone os 8_0like Mac os X applewebkit/600.1.3 (khtml, like Gecko) version/8.0 mobile/12a4345d safari/600.1.4 "_http_o utgoing.js:351 throw new TypeError (' The header content contains invalid characters '); ^typeerror:the header content contains invalid characters at ServerResponse.OutgoingMessage.setHeader (_http_outgoing. js:351:13) at Responsestream. (anonymous function)[As SetHeader] (c:\users\administrator\appdata\roaming\npm\node_modules\http-server\node_modules\union\lib\RESPONSE-STREAM.JS:88:34) at serve (c:\users\administrator\appdata\roaming\npm\node_modules\http-server\node_modules\ Ecstatic\lib\ecstatic.js:204:11) at C:\users\administrator \appdata \roaming\npm \node_modules\http-server\node_modules\ecstatic\lib\ecstatic.js:134:11 at Fsreqwrap.oncomplete (fs.js:82:15)
Node startup project, encountered the above problem, search Baidu, see the reason is the low version of Http-server a bug,
The Package.json "Http-server": "^0.6.1", instead of "Http-server": "^0.9.0",
On the command line: NPM update http-server
Re: NPM start
OK, solve
_http_outgoing JS Error: The header content contains invalid characters