'u oluştururken, Twitter Bootstrap'in yerel olarak özelleştirilmiş sürümlerini oluşturmak için ortamı kurdum ve yapılandırdım.Hatalı seçenek: '; _;' Twitter Bootstrap
Bu ne yaptım:
- Bootstrap derlemeye az
- klon Bootstrap lokal
- koşmak
make build
yükleyin - npm yükleyin düğümünü
- yükleyin
Adım 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
Hat 23: Satır 23. gerçi gelen // jshint ;_;
kaldırarak sorunu çözmek başardı
"use strict"; // jshint ;_;
, ben bakir Bootstrap kaynaklarını bırakmayı tercih ederim.
Bu hatalardan nasıl kurtulabilirim ve "Hatalı seçenek" hatası ne anlama geliyor?/.jshintrc
js:
{
"validthis": true,
"laxcomma" : true,
"laxbreak" : true,
"browser" : true,
"eqnull" : true,
"debug" : true,
"devel" : true,
"boss" : true,
"expr" : true,
"asi" : true
}
Teşekkürler. [Makefile] (https://raw.github.com/ahockersten/bootstrap/10e8efe3cfa1c839abe71bc0cd45076a095d2a09/Makefile) [bu çekme isteği] 'de başvuruda bulundum (https://github.com/twitter/bootstrap/pull/7022/files). Ayrıca, yolumu yansıtmak için BIN_PREFIX değerini değiştirdim ancak sorun devam ediyor. – Paolo
Bu bağlantıdan bazı detayları cevabınıza ekleyebilir misiniz? Sadece bağlantıların bağlanması,/link bittiğinde faydalı olmaz. – slm
Nedenini bilmiyorum ama global olarak kurulu jshint'i kullanamıyor gibi görünüyor. Bu URL'den yama kullanıyorum : https: //github.com/twitter/bootstrap/pull/5344/files , bağlantınız sürüm 3 içindir.0。 Ön yükleme yapmadan önce önyükleme klasöründeki efPefefile , ust , , , , n n n n n n n n n n n n n n n n n local local local local local local local local local local local local – boilingbit