javascript - Bower 版本问题 : SockJS

标签 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。有任何想法吗?

最佳答案

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

bower install sockjs-client --save

关于javascript - Bower 版本问题 : SockJS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32622076/

相关文章:

javascript - Meteor.js 部署用于 Web 和移动 native 应用程序,一个代码库

javascript - 如何关闭网页上指定输入字段的 iPhone 小键盘

javascript - 如何传递默认事件参数和 react 参数?

html - 在 GitHub 上发布具有多个子组件的 Polymer 组件

node.js - 如何修复 Bower 段错误 - Windows 上的 Eclipse?

javascript - 检查是否显示了数组中的所有百分比

websocket - JMeter 中的 Signalr 负载测试

java - JSONObject无法通过方法调用转换转换为String

c++ - 你能从 C++ 程序连接到 Socket.IO 吗?

c# - Visual Studio 2015 中的 Bower 错误