@Worddoc
Frontend explorer

Что делать с данной ошибкой при npm start?

Здравствуйте. Пытаюсь тут хотя бы начать работать с Angular js. Установил Node js , npm, bower и все что нужно. После ввода в git console : npm start сервер вроде как разворачивается, но после того, как я хочу подключиться к серверу выдает ошибку:

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! angular-phonecat@0.0.0 start: `http-server -a 0.0.0.0 -p 8000`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-phonecat@0.0.0 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
  • Вопрос задан
  • 1030 просмотров
Решения вопроса 1
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы