Skip to content

Instantly share code, notes, and snippets.

@suneo3476
Created December 2, 2016 07:05
Show Gist options
  • Save suneo3476/e927a3259cad4592c927261e30a957ea to your computer and use it in GitHub Desktop.
Save suneo3476/e927a3259cad4592c927261e30a957ea to your computer and use it in GitHub Desktop.
npmのhttp-serverがポート番号重複で起動できない問題への対処 ref: http://qiita.com/suneo3476/items/09a7a13111cbc0ba2d36
C:\Users\anonymous\dev>http-server
events.js:141
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 0.0.0.0:8080
at Object.exports._errnoException (util.js:837:11)
  (省略)
at node.js:951:3
netstat -aon | find "8080"
TCP ***.***.***.***:* 0.0.0.0:8080 LISTENING (数字)
taskkill /PID /F (数字)
Starting up http-server, serving ./static/pages
Available on:
http://192.168.24.52:8080
http://192.168.56.1:8080
http://127.0.0.1:8080
Hit CTRL-C to stop the server
[Fri Dec 02 2016 15:11:10 GMT+0900 (東京 (標準時))] "GET /" "Mozilla/5
.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chro
me/54.0.2840.99 Safari/537.36"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment