为什么我的 bower_install 报错说找不到我的包裹?
Why does my bower_install give me an error saying my package is not found?
我有以下 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
它正在互联网上寻找 user_staging 包。
如果 user_staging 是您的项目,并且您 运行ning bower install 与 bower.json 文件位于同一文件夹中,那么您可以 运行 "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
它正在互联网上寻找 user_staging 包。 如果 user_staging 是您的项目,并且您 运行ning bower install 与 bower.json 文件位于同一文件夹中,那么您可以 运行 "bower install" 不带任何参数安装项目的依赖项。