我想通过Bower获得最新的SockJS,并将其保存到我的bower.json文件中。
根据GitHub套接字-客户端页面的说法,最新版本是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。有什么想法吗?
发布于 2015-09-17 03:40:17
您要寻找的包是sockjs-client而不是socksjs,因此您应该执行
bower install sockjs-client --save
https://stackoverflow.com/questions/32622076
复制相似问题