命令行输入http-server 报错:http-server不是一个内部或外部命令

修改环境变量,把http-server复制到Npm的系统目录都没用。

参考答案: http://stackoverflow.com/questions/24245230/http-server-is-not-recognized-as-an-internal-or-external-command

必须这样安装 http-server:

npm install -g http-server