-
Notifications
You must be signed in to change notification settings - Fork 1.2k
更新whistle
avenwu.wwb edited this page Jun 26, 2016
·
14 revisions
版本变更点,请查看:CHANGELOG
执行命令更新whistle(mac或linux用户,如果安装过程出现异常,请在命令行前面加sudo,如 sudo npm install -g whistle):
$ npm install -g whistle
# 或
$ npm update -g whistle
# 或
$ npm install -g whistle --registry=https://registry.npm.taobao.org
# 或
$ npm update -g whistle --registry=https://registry.npm.taobao.org
npm默认镜像是在国外,有时候安装速度很慢或者出现安装不了的情况,如果无法安装或者安装很慢,可以使用taobao的镜像安装:
$ npm install cnpm -g --registry=https://registry.npm.taobao.org
安装成功后,直接执行:
$ cnpm install -g whistle
mac或linux用户,如果安装过程出现异常,可以使用 sudo cnpm install -g whistle安装
cnpm安装成功后,重启 whistle :
$ whistle restart
mac或linux用户,如果启动过程出现读写文件权限异常,可以使用 sudo whistle restart 启动
极端情况下可能出现端口占用的情况,遇到这种情况手动kill掉 node 或 iojs 的进程即可。