为什么我的bower_install错误地说我找不到我的包裹?

时间:2015-05-09 04:19:44

标签: bower bower-install

我有以下bower.json文件:

{
  "name": "user_staging",
  "private": true,
  "dependencies": {
    "angular": "^1.4.0",
    "angular-ui-router": "^0.2.0",
    "angular-loading-bar": "^0.6.0"
  },
  "resolutions": {
    "angular": "^1.4.0"
  }
}

当我发出:bower install user_staging然后它似乎安装了所有内容但完成后告诉我:

C:\G\user-staging\WebUserApp>bower install user_staging
bower cached        git://github.com/angular/bower-angular.git#1.3.15
bower validate      1.3.15 against git://github.com/angular/bower-angular.git#>
 1.0.8
bower cached        git://github.com/angular/bower-angular.git#1.4.0-rc.1
bower validate      1.4.0-rc.1 against git://github.com/angular/bower-angular.g
t#^1.4.0
bower not-cached    git://github.com/angular-ui/ui-router.git#^0.2.0
bower resolve       git://github.com/angular-ui/ui-router.git#^0.2.0
bower download      https://github.com/angular-ui/ui-router/archive/0.2.14.tar.
z
bower progress      angular-ui-router#^0.2.0 received 0.7MB of 1.7MB downloaded
 43%
bower progress      angular-ui-router#^0.2.0 received 0.8MB of 1.7MB downloaded
 49%
bower progress      angular-ui-router#^0.2.0 received 0.9MB of 1.7MB downloaded
 51%
bower progress      angular-ui-router#^0.2.0 received 0.9MB of 1.7MB downloaded
 56%
bower progress      angular-ui-router#^0.2.0 received 1.0MB of 1.7MB downloaded
 60%
bower progress      angular-ui-router#^0.2.0 received 1.1MB of 1.7MB downloaded
 67%
bower progress      angular-ui-router#^0.2.0 received 1.2MB of 1.7MB downloaded
 75%
bower ENOTFOUND     Package user_staging not found

1 个答案:

答案 0 :(得分:1)

它正在互联网上寻找user_staging包。 如果user_staging是您的项目,并且您正在bower.json文件所在的文件夹中运行bower install,那么您可以运行“bower install”而无需任何参数来安装项目的依赖项。