简体   繁体   English

注册Bower组件

[英]Register a Bower component

I try to register one of my project on Bower but it doesn't work, in first, I added my project on Github with tags and the following commands : 我尝试在Bower上注册我的一个项目,但是它不起作用,首先,我在Github上使用标签和以下命令添加了我的项目:

  1. "git log" “ git log”
  2. "git tag 0.0.0 kj8jkh8df43..." “ git标签0.0.0 kj8jkh8df43 ...”

I used the "bower init" command to create the "manifest.json" file but when I try to register the package, I get an issue... 我使用“ bower init”命令创建了“ manifest.json”文件,但是当我尝试注册该程序包时,却遇到了问题...

My issue : 我的问题:

bower Forest-Administrator#*   resolve git://github.com:tonymx227/Forest-Administrator.git#*
bower Forest-Administrator#*   ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com:tonymx227/Forest-Administrator.git", exit code of #128

Additional error details:
fatal: Unable to look up github.com (port tonymx227) (nodename nor servname provided, or not known)

My manifest.json file : 我的manifest.json文件:

{
  "name": "Forest-Administrator",
  "version": "0.0.0",
  "homepage": "https://github.com/tonymx227/Forest-Administrator",
  "dependencies": [
    "git://github.com/tonymx227/Forest-Administrator.git": "*"
  ],
  "authors": [
    "tonymx227 <tonymx227@gmail.com>"
  ],
  "description": "Forest Administrator is an HTML5/CSS3 framework which is used to organize your administration panel.",
  "keywords": [
    "forest",
    "administrator",
    "css3",
    "html5",
    "compass",
    "framework",
    "admin",
    "panel"
  ],
  "license": "MIT",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests",
    ".gitignore"
  ]
}

Anthony 安东尼

It should be git://github.com/tonymx227/Forest-Administrator.git 它应该是git://github.com/tonymx227/Forest-Administrator.git
Note the / instead of : 注意/而不是:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM