我剛安裝並配置了環境以在本地構建Twitter Bootstrap的自定義版本。不好的選擇:'; _;'在構建Twitter引導時
這就是我所做的:
- 安裝節點
- 安裝NPM
- 安裝少
- 克隆引導本地
- 運行
make build
編譯引導
第5步:
~/devel/parking/bootstrap$ make build
jshint js/*.js --config js/.jshintrc
js/bootstrap-affix.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-alert.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-button.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-carousel.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-collapse.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-dropdown.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-modal.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-popover.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-scrollspy.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-tab.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-tooltip.js: line 24, col 17, Bad option: ';_;'.
js/bootstrap-transition.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-typeahead.js: line 23, col 17, Bad option: ';_;'.
13 errors
make: *** [test] Error 2
第23行:
"use strict"; // jshint ;_;
我是能夠解決從線23雖然移除// jshint ;_;
的問題,我寧願離開引導源不變。
我該如何擺脫這些錯誤以及「錯誤選項」錯誤的含義是什麼?
JS/.jshintrc:
{
"validthis": true,
"laxcomma" : true,
"laxbreak" : true,
"browser" : true,
"eqnull" : true,
"debug" : true,
"devel" : true,
"boss" : true,
"expr" : true,
"asi" : true
}
謝謝。我使用[這個拉請求]中引用的[Makefile](https://raw.github.com/ahockersten/bootstrap/10e8efe3cfa1c839abe71bc0cd45076a095d2a09/Makefile)(https://github.com/twitter/bootstrap/pull/7022/files )。我還更改了'BIN_PREFIX'值來反映我的路徑,但問題仍然存在。 – Paolo 2013-02-24 18:22:54
你可以在你的答案中提供該鏈接的一些細節嗎?鏈接只有在鏈接消失時纔有用。 – slm 2013-02-24 18:24:10
我不知道爲什麼,但似乎無法使用全局安裝的jshint。我使用此URL的補丁:https://github.com/twitter/bootstrap/pull/5344/files,您的鏈接是針對版本3的。0.在make之前,只需要替換bootstrap文件夾中的Makefile,不要忘記執行'npm install'來在本地安裝依賴項,然後make會成功。 – boilingbit 2013-02-24 18:51:45