【问题标题】:missing bower_components folder after bower installbower 安装后缺少 bower_components 文件夹
【发布时间】:2015-01-05 08:56:36
【问题描述】:

在一个个人项目中,我今天早上在 svn 结帐后运行npm install && bower install

所有软件包似乎都已下载并安装,没有错误,所有的火都是绿色的。

但安装后,bower_components 文件夹仍然丢失。

我测试了bower cache clean,但没有效果。 我还更新了我的凉亭版本# npm -g update bower,但没有更多效果。

有什么想法吗?

这是凉亭安装输出:

bower exifreader#*          not-cached git://github.com/mattiasw/ExifReader.git#*
bower exifreader#*             resolve git://github.com/mattiasw/ExifReader.git#*
bower geolocationmarker#*   not-cached git://github.com/shahariaazam/geolocationmarker.git#*
bower geolocationmarker#*      resolve git://github.com/shahariaazam/geolocationmarker.git#*
bower angular#1.2.27            cached git://github.com/angular/bower-angular.git#1.2.27
bower angular#1.2.27          validate 1.2.27 against git://github.com/angular/bower-angular.git#1.2.27
bower cryptojslib#~3.1.2        cached git://github.com/sytelus/CryptoJS.git#3.1.2
bower cryptojslib#~3.1.2      validate 3.1.2 against git://github.com/sytelus/CryptoJS.git#~3.1.2
bower ngmap#0.17.0              cached git://github.com/allenhwkim/angularjs-google-maps.git#0.17.0
bower ngmap#0.17.0            validate 0.17.0 against git://github.com/allenhwkim/angularjs-google-maps.git#0.17.0
bower jquery#1.11               cached git://github.com/jquery/jquery.git#1.11.2
bower jquery#1.11             validate 1.11.2 against git://github.com/jquery/jquery.git#1.11
bower angularjs-geolocation#~0.1.1           cached git://github.com/arunisrael/angularjs-geolocation.git#0.1.1
bower angularjs-geolocation#~0.1.1         validate 0.1.1 against git://github.com/arunisrael/angularjs-geolocation.git#~0.1.1
bower ui-router#~0.2.13                      cached git://github.com/angular-ui/ui-router.git#0.2.13
bower ui-router#~0.2.13                    validate 0.2.13 against git://github.com/angular-ui/ui-router.git#~0.2.13
bower angular-bootstrap#~0.12.0              cached git://github.com/angular-ui/bootstrap-bower.git#0.12.0
bower angular-bootstrap#~0.12.0            validate 0.12.0 against git://github.com/angular-ui/bootstrap-bower.git#~0.12.0
bower angular-ui#~0.4.0                      cached git://github.com/angular-ui/angular-ui.git#0.4.0
bower angular-ui#~0.4.0                    validate 0.4.0 against git://github.com/angular-ui/angular-ui.git#~0.4.0
bower Bootflat#~2.0.4                        cached git://github.com/bootflat/bootflat.github.io.git#2.0.4
bower Bootflat#~2.0.4                      validate 2.0.4 against git://github.com/bootflat/bootflat.github.io.git#~2.0.4
bower flatstrap3#~3.0.3                      cached git://github.com/littlesparkvt/Flatstrap-for-Bootstrap-3.git#3.0.3
bower flatstrap3#~3.0.3                    validate 3.0.3 against git://github.com/littlesparkvt/Flatstrap-for-Bootstrap-3.git#~3.0.3
bower angular-animate#1.2.27                 cached git://github.com/angular/bower-angular-animate.git#1.2.27
bower angular-animate#1.2.27               validate 1.2.27 against git://github.com/angular/bower-angular-animate.git#1.2.27
bower angular-bootstrap-checkbox#~0.3.1      cached git://github.com/sebastianha/angular-bootstrap-checkbox.git#0.3.1
bower angular-bootstrap-checkbox#~0.3.1    validate 0.3.1 against git://github.com/sebastianha/angular-bootstrap-checkbox.git#~0.3.1
bower angular-ui-tinymce#~0.0.5              cached git://github.com/angular-ui/ui-tinymce.git#0.0.5
bower angular-ui-tinymce#~0.0.5            validate 0.0.5 against git://github.com/angular-ui/ui-tinymce.git#~0.0.5
bower angular-ui-grid#~3.0.0-rc.16           cached git://github.com/angular-ui/bower-ui-grid.git#3.0.0-rc.16
bower angular-ui-grid#~3.0.0-rc.16         validate 3.0.0-rc.16 against git://github.com/angular-ui/bower-ui-grid.git#~3.0.0-rc.16
bower geolocationmarker#*                  checkout master
bower exifreader#*                         checkout master
bower geolocationmarker#*              invalid-meta geolocationmarker is missing "ignore" entry in bower.json
bower geolocationmarker#*                  resolved git://github.com/shahariaazam/geolocationmarker.git#36357c8702
bower exifreader#*                     invalid-meta exifreader is missing "ignore" entry in bower.json
bower exifreader#*                         resolved git://github.com/mattiasw/ExifReader.git#84ddc9f7cf
bower bootstrap-sass#~3.0.2               ENOTFOUND Package bootstrap-sass not found

【问题讨论】:

  • 您是否有一个 .bowerrc 文件,其中目录设置为 /bower_components 以外的任何其他内容?
  • @Ricconnect 不,我没有.bowerrc 文件。
  • 你能发布凉亭安装日志吗?
  • 只是为了确定:您的主文件夹或当前工作目录的父文件夹中有.bowerrc 文件吗?配置是从多个位置获取的,请参阅:bower.io/docs/config/#placement--order
  • @drorb 哦,我只看到最后一行(ENOTFOUND)并从 bower.json 中删除了包。现在好了。该过程最终没有运行,但现在可以了。谢谢!

标签: node.js npm bower bower-install


【解决方案1】:

解决了。

凉亭安装输出的最后一行:

bower bootstrap-sass#~3.0.2               ENOTFOUND Package bootstrap-sass not found

导致脚本退出。

删除后,它的工作。

【讨论】:

    猜你喜欢
    • 2013-12-24
    • 1970-01-01
    • 2018-02-04
    • 2021-03-02
    • 2015-03-17
    • 1970-01-01
    • 1970-01-01
    • 2016-11-15
    • 1970-01-01
    相关资源
    最近更新 更多