"bower install" 和 "bower update" 显示错误

"bower install" and "bower update" showing error

这是我的bower.json。我从 Github 中提取了我的项目,bower 文件已在 ubuntu 14.04 上更新。但是一拉之后。我的 angular 版本在 bower.json 文件中显示 1.4.8。但是在 bower_components 里面有 angular 1.4.14。所以我运行"bower update"。但它结束时显示“ECONFLICT 无法为 angular 找到合适的版本”。我尝试删除 bower_components 和 运行 bower 安装,但仍然出现同样的问题。我的 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"
  }
}

============================================= =

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

同样在 "npm install" 之后,我得到了这些行,我对此感到困惑,尽管关于 os 的只是一个 warning.something。 要求 'darwin' 但当前 'win32'。有问题吗

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.

通常表示不满足某些组件要求。例如 angular-mocks 版本是 1.3.8 依赖于 angular 1.3.8。尝试更改为:

"angular-mocks" : "1.4.8"

编辑:

来自 fsevents 页:

The FSEvents API in OS X allows applications to register for notifications of changes to a given directory tree.

因此如果您 运行宁 Windows,则不适用。如果你想运行没有任何通知:

npm install --no-optional

如果 bower 没有提示您 select 一个软件组件版本,这意味着 bower 能够自动为您 select 它。所以不用担心。