Skip to content
avenwu.wwb edited this page Sep 15, 2015 · 14 revisions

如何更新whistle

更新和安装whistle的命令是一样的,执行命令:

$ npm install -g whistle 

mac或linux用户,如果安装过程出现异常,可以使用 sudo npm install -g whistle安装

npm默认镜像是在国外,有时候安装速度很慢或者出现安装不了的情况,如果无法安装或者安装很慢,可以使用taobao的镜像安装:

$ npm install cnpm -g --registry=https://registry.npm.taobao.org

安装成功后,直接执行:

$ cnpm install -g whistle

mac或linux用户,如果安装过程出现异常,可以使用 sudo cnpm install -g whistle安装

安装成功后,重启 whistle

$ whistle restart

mac或linux用户,如果安装过程出现异常,可以使用 sudo whistle restart安装

极端情况下可能出现端口占用的情况,遇到这种情况手动kill掉 nodeiojs 的进程即可。

Clone this wiki locally