highlight.js的最新版本是8.4:https://github.com/isagalaev/highlight.js/tree/8.4

当我尝试使用Bower安装它时,得到的版本是7.0.1:

bower install highlight -S
bower install highlight-js -S
bower install highlight.js.origin -S
bower install git://github.com/isagalaev/highlight.js.git -S

即使我使用"git://github.com/isagalaev/highlight.js.git#~8.4"我也无法做到:
bower highlight#~8.4        not-cached git://github.com/isagalaev/highlight.js.git#~8.4
bower highlight#~8.4           resolve git://github.com/isagalaev/highlight.js.git#~8.4
bower highlight#~8.4      ENORESTARGET No tag found that was able to satisfy ~8.4

Additional error details:
Available versions: 7.0.1, 6.0.1

如何使用Bower安装Highlight.js 8.4?

最佳答案

https://github.com/components/highlightjs上的Shim存储库发布8.4版本(以及最新版本)。因此,bower install highlightjs应该做到这一点。

关于node.js - 如何使用Bower安装Highlight.js?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27767200/

10-12 16:17