我正在尝试使用git bash在windows xp上安装平均堆栈。 我从mean.io下载了zip,当我在平均堆栈的目录上启动'npm install'时,我发现这个错误,尽管我遵循了mean.io的所有结构:
Welcome to Git (version 1.8.4-preview20130916)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
corsojava@YKLW101934 ~
$ cd /c/ms-application/mean-stack
corsojava@YKLW101934 /c/ms-application/mean-stack
$ pwd
/c/ms-application/mean-stack
corsojava@YKLW101934 /c/ms-application/mean-stack
$ npm install
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/jade
npm http GET https://registry.npmjs.org/mongoose
npm http GET https://registry.npmjs.org/grunt-bower-task
npm http GET https://registry.npmjs.org/connect-mongo
npm http GET https://registry.npmjs.org/supertest
npm http GET https://registry.npmjs.org/connect-flash
npm http GET https://registry.npmjs.org/should
npm http GET https://registry.npmjs.org/passport
npm http GET https://registry.npmjs.org/grunt-contrib-watch
npm http GET https://registry.npmjs.org/passport-local
npm http GET https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/passport-facebook
npm http GET https://registry.npmjs.org/passport-twitter
npm http GET https://registry.npmjs.org/passport-github
npm http GET https://registry.npmjs.org/passport-google-oauth
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/view-helpers
npm http GET https://registry.npmjs.org/mean-logger
npm http GET https://registry.npmjs.org/forever
npm http GET https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt-nodemon
npm http GET https://registry.npmjs.org/grunt-concurrent
npm http GET https://registry.npmjs.org/grunt-mocha-test
npm http 304 https://registry.npmjs.org/jade
npm http 304 https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/connect-mongo
npm http 304 https://registry.npmjs.org/grunt-bower-task
npm http 304 https://registry.npmjs.org/supertest
npm http 304 https://registry.npmjs.org/connect-flash
npm http 304 https://registry.npmjs.org/mongoose
npm http 304 https://registry.npmjs.org/should
npm http 304 https://registry.npmjs.org/passport
npm http 304 https://registry.npmjs.org/grunt-contrib-watch
npm http 304 https://registry.npmjs.org/passport-local
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
npm http 304 https://registry.npmjs.org/passport-facebook
npm http 304 https://registry.npmjs.org/passport-twitter
npm http 304 https://registry.npmjs.org/passport-github
npm http 304 https://registry.npmjs.org/passport-google-oauth
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/view-helpers
npm http 304 https://registry.npmjs.org/mean-logger
npm http 304 https://registry.npmjs.org/forever
npm http 304 https://registry.npmjs.org/grunt
npm http 304 https://registry.npmjs.org/grunt-cli
npm http 304 https://registry.npmjs.org/grunt-nodemon
npm http 304 https://registry.npmjs.org/grunt-concurrent
npm http 304 https://registry.npmjs.org/grunt-mocha-test
> mean@1.0.0 postinstall c:\ms-application\mean-stack
> node node_modules/grunt-cli/bin/grunt install
Running "bower:install" (bower) task
bower not-cached git://github.com/twbs/bootstrap.git#2.3.2
bower resolve git://github.com/twbs/bootstrap.git#2.3.2
bower not-cached git://github.com/angular/bower-angular.git#~1.0.6
bower resolve git://github.com/angular/bower-angular.git#~1.0.6
bower not-cached git://github.com/angular/bower-angular-resource.git#~1.0.6
bower resolve git://github.com/angular/bower-angular-resource.git#~1.0.6
bower not-cached git://github.com/angular/bower-angular-cookies.git#~1.0.6
bower resolve git://github.com/angular/bower-angular-cookies.git#~1.0.6
bower not-cached git://github.com/angular-ui/bootstrap-bower.git#~0.4.0
bower resolve git://github.com/angular-ui/bootstrap-bower.git#~0.4.0
bower not-cached git://github.com/angular-ui/ui-utils.git#0.0.4
bower resolve git://github.com/angular-ui/ui-utils.git#0.0.4
bower not-cached git://github.com/bestiejs/json3.git#~3.2.4
bower resolve git://github.com/bestiejs/json3.git#~3.2.4
bower not-cached git://github.com/components/jquery.git#~1.9.1
bower resolve git://github.com/components/jquery.git#~1.9.1
Fatal error: Failed to execute "git ls-remote --tags --heads git://github.com/an
gular/bower-angular-cookies.git", exit code of #128
npm ERR! weird error 1
npm ERR! not ok code 0
corsojava@YKLW101934 /c/ms-application/mean-stack
$
“致命错误:无法执行”git ls-remote --tags --heads git://github.com/an gular / bower-angular-cookies.git“,#128的退出代码 错误的ERR!奇怪的错误1 错误的ERR!不好的代码0“
任何想法?
答案 0 :(得分:0)
您可以尝试Bitnami MEAN堆栈,它为Windows,Linux Mac http://bitnami.com/stack/mean提供开源安装程序,VM和云映像(免责声明,我是其中一个开发人员)。它允许您安装和配置MongoDB,Node等。