Bower版本问题:SockJS

时间:2015-09-17 03:18:46

标签: javascript websocket bower sockjs

我想通过Bower获取最新的SockJS并将其保存到我的bower.json文件中。

根据GitHub sockjs-client page,最新版本为v1.0.3(我看到了标签)。

但是,我一直在v0.3.4。这是我运行的命令:

> bower install sockjs --save

我的结果:

bower sockjs#*                  cached git://github.com/myguidingstar/bower-sockjs.git#0.3.4
bower sockjs#*                validate 0.3.4 against git://github.com/myguidingstar/bower-sockjs.git#*
bower sockjs#~0.3.4            install sockjs#0.3.4

我尝试过很多东西,包括:

> bower install https://github.com/sockjs/sockjs-client.git#v1.0.3 --save

并收到错误:

bower sockjs#1.0.3          not-cached git://github.com/myguidingstar/bower-sockjs.git#1.0.3
bower sockjs#1.0.3             resolve git://github.com/myguidingstar/bower-sockjs.git#1.0.3
bower sockjs-client#v1.0.3      cached https://github.com/sockjs/sockjs-client.git#1.0.3
bower sockjs-client#v1.0.3    validate 1.0.3 against https://github.com/sockjs/sockjs-client.git#v1.0.3
bower sockjs#1.0.3        ENORESTARGET No tag found that was able to satisfy 1.0.3

Additional error details:
Available versions: 0.3.4

出于某种原因,无论我做什么,它都会一直回到v0.3.4。有任何想法吗?

1 个答案:

答案 0 :(得分:2)

您正在寻找的套餐是sockjs-client而不是socksjs,因此您应该这样做

bower install sockjs-client --save