" bower install"和"凉亭更新"显示错误

时间:2016-11-01 13:37:04

标签: angularjs bower bower-install

这是我的bower.json。我从Github拉了我的项目,bower文件在ubuntu 14.04上更新了。但是拉了一下之后。我的角度版本在bower.json文件中显示1.4.8。但是在bower_components里面有角度1.4.14。所以我跑了#34; bower update"。但它结束了显示" ECONFLICT无法为角度"找到合适的版本。我尝试删除bower_components并运行bower install,但仍然出现同样的问题。我的nodejs版本是6.9.1,我最近安装了它。我现在应该怎么做?请给我一个解决方案。

{
  "name": "starter-gulp",
  "version": "0.1.0",
  "description": "Starter Code for Gulp Angular ",
  "authors": [
    "John Papa"
  ],
  "license": "MIT",
  "homepage": "https://github.com/..-gulp",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components"
  ],
  "devDependencies": {
    "angular-mocks": "~1.3.8",
    "sinon": "http://sinonjs.org/releases/sinon-1.12.1.js",
    "bardjs": "~0.0.3"
  },
  "dependencies": {
    "angular": "~1.4.8",
    "angular-animate": "~1.4.7",
    "angular-bootstrap": "~1.1.0",
    "angular-drag-and-drop-lists": "dndLists#~1.3.0",
    "angular-resource": "~1.4.7",
    "angular-sanitize": "~1.4.8",
    "angular-summernote": "~0.7.0",
    "angular-ui-router": "~0.2.13",
    "bootflat": "*",
    "bootstrap": "~3.3.6",
    "extras.angular.plus": "~0.9.2",
    "font-awesome": "~4.5.0",
    "Ionicons": "ionicons#~2.0.1",
    "jquery": "~2.1.4",
    "jquery-quick-pagination": "*",
    "jquery-ui": "~1.11.4",
    "moment": "~2.8.4",
    "remodal": "~1.0.6",
    "summernote": "~0.7.0",
    "toastr": "~2.1.0",
    "vunit": "~0.2.0",
    "async": "^1.5.2",
    "angular-ui-tree": "^2.15.0",
    "ng-file-upload": "^12.0.4",
    "ng-img-crop": "ngImgCrop#^0.3.2",
    "angular-local-storage": "^0.3.0"
  }
}

============================================== < / p>

bower bootflat#*                                 progress remote: Compressing objects: 100% (27/27), done.
bower bootflat#*                                 resolved https://github.com/flathemes/bootflat.git#affdd96590
bower bootstrap#~3.3.6                            install bootstrap#3.3.7
bower                                         postinstall gulp wiredep
bower                                         postinstall [23:03:25]
bower                                         postinstall Using gulpfile E:\Apps\xampp\htdocs\web-module\gulpfile.js
bower                                         postinstall [23:03:25]
bower                                         postinstall Starting 'wiredep'...
bower                                         postinstall [23:03:25] Wire bower css, js and our app js into html
bower                                         postinstall [23:03:25]
bower                                         postinstall gulp-inject 49 files into index.html.
bower                                         postinstall [23:03:25] Finished 'wiredep' after 401 ms

bootstrap#3.3.7 bower_components\bootstrap
└── jquery#2.1.4

在&#34; npm install&#34;之后我得到了这些线条,我对此感到困惑,虽然它只是一个警告。有关os的说法。 要求达尔文&#39;但是目前的胜利&#39; 。这是一个问题。

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN gulp-jshint@2.0.2 requires a peer of jshint@2.x but none was installed.

1 个答案:

答案 0 :(得分:0)

通常意味着,某些组件要求不符合要求。例如,角度模拟版本是1.3.8依赖于角度1.3.8。尝试更改为:

"angular-mocks" : "1.4.8"

修改

来自fsevents页面:

  

OS X中的FSEvents API允许应用程序注册   对给定目录树的更改通知。

因此,如果您运行Windows,则不适用。如果您想在没有任何通知的情况下运行:

npm install --no-optional

如果bower未提示您选择软件组件版本,则表示bower可以自动为您选择。所以不用担心。