W
W
Worddoc2016-03-20 19:28:32
Angular
Worddoc, 2016-03-20 19:28:32

What to do with this error when npm start?

Hello. I'm trying to at least start working with Angular js here. Installed Node js , npm, bower and everything you need. After typing in git console : npm start the server seems to be deployed, but after I want to connect to the server it gives an error:

Starting up http-server, serving ./ on port: 8000
Hit CTRL-C to stop the server
[Sun, 20 Mar 2016 16:26:21 GMT] "GET /app/index.html" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36"
_http_outgoing.js:348
    throw new TypeError('The header content contains invalid characters');
    ^

TypeError: The header content contains invalid characters
    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:348:11)
    at ResponseStream.(anonymous function) [as setHeader] (C:\Users\Worddoc\Desktop\JavaScript\angular\node_modules\union\lib\response-stream.js:86:34)
    at serve (C:\Users\Worddoc\Desktop\JavaScript\angular\node_modules\ecstatic\lib\ecstatic.js:146:11)
    at C:\Users\Worddoc\Desktop\JavaScript\angular\node_modules\ecstatic\lib\ecstatic.js:139:9
    at FSReqWrap.oncomplete (fs.js:82:15)

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v5.9.0
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `http-server -a 0.0.0.0 -p 8000`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'http-server -a 0.0.0.0 -p 8000'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     http-server -a 0.0.0.0 -p 8000
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-phonecat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Worddoc\Desktop\JavaScript\angular\npm-debug.log

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Skrolea, 2016-03-20
@Worddoc

How to overcome the error when starting the angular server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question