【发布时间】:2017-08-10 09:55:31
【问题描述】:
在我的 OSX 上安装 http 服务器后,我得到了标题中提到的错误
npm install http-server -g
它安装在
/usr/local/bin/http-server -> /usr/local/lib/node_modules/http-server/bin/http-server
/usr/local/bin/hs -> /usr/local/lib/node_modules/http-server/bin/http-server
/usr/local/lib
我尝试添加一条路径,因为我看到这是 here 这样的建议
PATH=$PATH:/usr/local/lib/node_modules/http-server
【问题讨论】:
-
我运行了错误的命令而不是 http-server 我输入了 http server
-
@Marco 你找到解决方案了吗?