Last active
August 29, 2015 13:58
-
-
Save macrotea/9970256 to your computer and use it in GitHub Desktop.
Yeoman在yo webapp时出错
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .gitconfig 内容如下: | |
| [user] | |
| name = macrotea | |
| email = macrotea@qq.com | |
| [alias] | |
| ci = commit | |
| co = checkout | |
| st = status | |
| br = branch | |
| throw = reset --hard HEAD | |
| throwh = reset --hard HEAD^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\Users\macrotea>cd d: | |
| D:\ | |
| C:\Users\macrotea>d: | |
| D:\>mkdir yo-demo | |
| D:\>cd yo-demo | |
| D:\yo-demo>node -v | |
| v0.10.25 | |
| D:\yo-demo>npm -v | |
| 1.3.24 | |
| D:\yo-demo>yo -v | |
| 1.1.2 | |
| D:\yo-demo>bower -v | |
| 1.3.1 | |
| D:\yo-demo>grunt -v | |
| grunt-cli: The grunt command line interface. (v0.1.13) | |
| Fatal error: Unable to find local grunt. | |
| If you're seeing this message, either a Gruntfile wasn't found or grunt | |
| hasn't been installed locally to your project. For more information about | |
| installing and configuring grunt, please see the Getting Started guide: | |
| http://gruntjs.com/getting-started | |
| D:\yo-demo>grunt -version | |
| grunt-cli v0.1.13 | |
| D:\yo-demo>yo webapp | |
| :\yo-demo>yo webapp | |
| D:\yo-demo>yo webapp | |
| _-----_ | |
| | | | |
| |--(o)--| .--------------------------. | |
| `---------´ | Welcome to Yeoman, | | |
| ( _´U`_ ) | ladies and gentlemen! | | |
| /___A___\ '__________________________' | |
| | ~ | | |
| __'.___.'__ | |
| ´ ` |° ´ Y ` | |
| Out of the box I include HTML5 Boilerplate, jQuery, and a Gruntfile.js to build your app. | |
| [?] What more would you like? Bootstrap | |
| create Gruntfile.js | |
| create package.json | |
| create .gitignore | |
| create .gitattributes | |
| create .bowerrc | |
| create bower.json | |
| create .jshintrc | |
| create .editorconfig | |
| create app\favicon.ico | |
| create app\404.html | |
| create app\robots.txt | |
| create app\.htaccess | |
| create app\styles\main.css | |
| create app\index.html | |
| create app\scripts\main.js | |
| I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself. | |
| npm WARN package.json yo-demo@0.0.0 No description | |
| npm WARN package.json yo-demo@0.0.0 No repository field. | |
| npm WARN package.json yo-demo@0.0.0 No README data | |
| npm http GET https://registry.npmjs.org/grunt-contrib-concat | |
| npm http GET https://registry.npmjs.org/grunt-svgmin | |
| npm http GET https://registry.npmjs.org/load-grunt-tasks | |
| npm http GET https://registry.npmjs.org/grunt-contrib-copy | |
| npm http GET https://registry.npmjs.org/grunt-contrib-uglify | |
| npm http GET https://registry.npmjs.org/grunt-concurrent | |
| npm http GET https://registry.npmjs.org/time-grunt | |
| npm http GET https://registry.npmjs.org/grunt | |
| npm http GET https://registry.npmjs.org/jshint-stylish | |
| npm http GET https://registry.npmjs.org/grunt-contrib-jshint | |
| npm http GET https://registry.npmjs.org/grunt-contrib-cssmin | |
| npm http GET https://registry.npmjs.org/grunt-contrib-connect | |
| npm http GET https://registry.npmjs.org/grunt-contrib-clean | |
| npm http GET https://registry.npmjs.org/grunt-bower-install | |
| npm http GET https://registry.npmjs.org/grunt-contrib-imagemin | |
| npm http GET https://registry.npmjs.org/grunt-contrib-htmlmin | |
| npm http GET https://registry.npmjs.org/grunt-rev | |
| npm http GET https://registry.npmjs.org/grunt-mocha | |
| npm http GET https://registry.npmjs.org/grunt-contrib-watch | |
| npm http GET https://registry.npmjs.org/grunt-autoprefixer | |
| npm http GET https://registry.npmjs.org/grunt-newer | |
| npm http GET https://registry.npmjs.org/grunt-usemin | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-uglify | |
| bower jquery#~1.11.0 not-cached git://github.com/jquery/jquery.git#~1.11.0 | |
| bower jquery#~1.11.0 resolve git://github.com/jquery/jquery.git#~1.11.0 | |
| bower bootstrap#~3.0.3 cached git://github.com/twbs/bootstrap.git#3.0.3 | |
| bower bootstrap#~3.0.3 validate 3.0.3 against git://github.com/twbs/bootstrap.git#~3.0.3 | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-concat | |
| npm http 304 https://registry.npmjs.org/grunt-concurrent | |
| npm http 304 https://registry.npmjs.org/time-grunt | |
| npm http 304 https://registry.npmjs.org/jshint-stylish | |
| npm http 304 https://registry.npmjs.org/grunt | |
| npm http 304 https://registry.npmjs.org/load-grunt-tasks | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-cssmin | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-connect | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-jshint | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-imagemin | |
| npm http 304 https://registry.npmjs.org/grunt-bower-install | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-clean | |
| npm http 304 https://registry.npmjs.org/grunt-rev | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-htmlmin | |
| npm http 304 https://registry.npmjs.org/grunt-mocha | |
| npm http 304 https://registry.npmjs.org/grunt-contrib-watch | |
| npm http 304 https://registry.npmjs.org/grunt-newer | |
| npm http 304 https://registry.npmjs.org/grunt-usemin | |
| npm http 304 https://registry.npmjs.org/grunt-autoprefixer | |
| npm http 304 https://registry.npmjs.org/grunt-svgmin | |
| bower bootstrap#~3.0.3 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/twbs/bootstrap.git", exit code of #128 | |
| Additional error details: | |
| fatal: unable to connect to github.com: | |
| github.com[0: 192.30.252.129]: errno=No error | |
| events.js:74 | |
| throw TypeError('Uncaught, unspecified "error" event.'); | |
| ^ | |
| TypeError: Uncaught, unspecified "error" event. | |
| at TypeError (<anonymous>) | |
| at Appgenerator.EventEmitter.emit (events.js:74:15) | |
| at done (C:\Users\macrotea\AppData\Roaming\npm\node_modules\generator-webapp\node_modules\yeoman-generator\lib\base.js:318:16) | |
| at C:\Users\macrotea\AppData\Roaming\npm\node_modules\generator-webapp\node_modules\yeoman-generator\node_modules\async\lib\async.js:232:13 | |
| at C:\Users\macrotea\AppData\Roaming\npm\node_modules\generator-webapp\node_modules\yeoman-generator\node_modules\async\lib\async.js:113:21 | |
| at C:\Users\macrotea\AppData\Roaming\npm\node_modules\generator-webapp\node_modules\yeoman-generator\node_modules\async\lib\async.js:24:16 | |
| at C:\Users\macrotea\AppData\Roaming\npm\node_modules\generator-webapp\node_modules\yeoman-generator\node_modules\async\lib\async.js:229:17 | |
| at C:\Users\macrotea\AppData\Roaming\npm\node_modules\generator-webapp\node_modules\yeoman-generator\node_modules\async\lib\async.js:516:34 | |
| at Appgenerator.<anonymous> (C:\Users\macrotea\AppData\Roaming\npm\node_modules\generator-webapp\node_modules\yeoman-generator\lib\actions\install | |
| .js:43:7) | |
| at ChildProcess.EventEmitter.emit (events.js:117:20) | |
| D:\yo-demo> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
获得bootstrap源码出错:
git ls-remote --tags --heads git://github.com/twbs/bootstrap.git