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-repository发布了8.4版本(以及大多数更新的版本).所以bower安装highlightjs应该这样做.