簡體   English   中英

涼亭寄存器EMALFORMED錯誤

[英]bower register EMALFORMED error

嘗試注冊涼亭包時出現錯誤。

錯誤是未執行的令牌:

我的bower.json是

  {
  "name": "cordova-meets-angular",
  "version": "0.0.1",
  "homepage": "https://github.com/RefineriaWeb/cordovaMeetsAngular",
  "description": "A JS Wrapper for cordova plugins to be used in Angular Mobile projects",
  "moduleType": [
    "globals"
  ],
  "dependencies":[
    "angular": "~1.2.23"
  ],
  "keywords": [
    "angular",
    "cordova",
    "plugins",
    "mobilejs"
  ],
  "license": "MIT",
  "private": false,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ]
}

問題在於依賴項字段。 您正在使用數組而不是哈希:

依賴

類型:對象

依賴關系是通過一個簡單的程序包名稱哈希值指定的,即一個與semver兼容的標識符或URL。

依賴項字段應為:

"dependencies": {
    "angular": "~1.2.23"
},

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM