0

我正在尝试使用 git bash 在 windows xp 上安装平均堆栈。我从mean.io下载了 zip ,当我在 mean 堆栈的目录上启动“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 npm ERR!奇怪的错误1 npm错误!错误代码 0"

有任何想法吗?

4

1 回答 1

0

您可以尝试 Bitnami MEAN 堆栈,它为 Windows、Linux Mac 提供开源安装程序、VM 和云映像http://bitnami.com/stack/mean (免责声明,我是开发人员之一)。它将允许您安装和配置 MongoDB、Node 等。

于 2013-12-27T23:45:01.540 回答