1

我已经申请make了 github bootstrap clone ( git clone https://github.com/twitter/bootstrap.git) 并且收到以下输出:

mkdir -p bootstrap/img
mkdir -p bootstrap/css
mkdir -p bootstrap/js
cp img/* bootstrap/img/
lessc ./less/bootstrap.less > bootstrap/css/bootstrap.css
lessc --compress ./less/bootstrap.less > bootstrap/css/bootstrap.min.css
lessc ./less/responsive.less > bootstrap/css/bootstrap-responsive.css
lessc --compress ./less/responsive.less > bootstrap/css/bootstrap-responsive.min.css
cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js > bootstrap/js/bootstrap.js
uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js
echo "/**\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js
cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js
rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js
rm docs/assets/bootstrap.zip
rm: cannot remove `docs/assets/bootstrap.zip': No such file or directory
make: *** [docs] Error 1

我的bootstrap/bootstrap文件夹包含:

├── css
│   ├── bootstrap.css
│   ├── bootstrap.min.css
│   ├── bootstrap-responsive.css
│   └── bootstrap-responsive.min.css
├── img
│   ├── glyphicons-halflings.png
│   └── glyphicons-halflings-white.png
└── js
    ├── bootstrap.js
    └── bootstrap.min.js

我需要担心make错误,还是我可以走了?(我以前从未使用过 Bootstrap)。

谢谢!瑞安

编辑:

应用make -i(感谢 Beta)产生以下输出(从上述输出继续)并且似乎没问题:

rm: cannot remove `docs/assets/bootstrap.zip': No such file or directory
make: [docs] Error 1 (ignored)
zip -r docs/assets/bootstrap.zip bootstrap
  adding: bootstrap/ (stored 0%)
  adding: bootstrap/js/ (stored 0%)
  adding: bootstrap/js/bootstrap.js (deflated 82%)
  adding: bootstrap/js/bootstrap.min.js (deflated 74%)
  adding: bootstrap/css/ (stored 0%)
  adding: bootstrap/css/bootstrap-responsive.min.css (deflated 77%)
  adding: bootstrap/css/bootstrap.min.css (deflated 84%)
  adding: bootstrap/css/bootstrap.css (deflated 85%)
  adding: bootstrap/css/bootstrap-responsive.css (deflated 80%)
  adding: bootstrap/img/ (stored 0%)
  adding: bootstrap/img/glyphicons-halflings.png (deflated 4%)
  adding: bootstrap/img/glyphicons-halflings-white.png (deflated 4%)
cp bootstrap/js/bootstrap.js docs/assets/js/bootstrap.js
cp bootstrap/js/bootstrap.min.js docs/assets/js/bootstrap.min.js
rm -r bootstrap
lessc ./less/bootstrap.less > ./docs/assets/css/bootstrap.css
lessc ./less/responsive.less > ./docs/assets/css/bootstrap-responsive.css
node docs/build
cp img/* docs/assets/img/
cp js/*.js docs/assets/js/
cp js/tests/vendor/jquery.js docs/assets/js/
4

1 回答 1

1

你没有给我们太多的继续。此错误可能在两个方面造成麻烦:1) 中止,当它可能还有重要的事情要做时,以及 2) 缺少预期的文件可能表明出现了问题。

如果你想让 Make 继续前进,尽管有错误,只需使用make -i. 这将防止第一个问题,但如果存在潜在问题,则不会对潜在问题采取任何措施。

于 2012-04-19T04:33:09.123 回答