Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 不提供早午餐和凉亭_Javascript_Json_Bower_Brunch - Fatal编程技术网

Javascript 不提供早午餐和凉亭

Javascript 不提供早午餐和凉亭,javascript,json,bower,brunch,Javascript,Json,Bower,Brunch,我创建了一些javascript组件(路由器、虹吸、验证器、验证器规则),我按照规范在bower中注册了所有内容 我有一个关于bower.json的项目: { "name": "Your Gotham's application", "version": "0.0.1", "main": "", "dependencies": { "console-polyfill": "~0.1.2", "jquery": "2.1.3", "lodash": "~3.

我创建了一些javascript组件(路由器、虹吸、验证器、验证器规则),我按照规范在bower中注册了所有内容

我有一个关于bower.json的项目:

{
  "name": "Your Gotham's application",
  "version": "0.0.1",
  "main": "",
  "dependencies": {
    "console-polyfill": "~0.1.2",
    "jquery": "2.1.3",
    "lodash": "~3.9.0",
    "gotham-router": "1.0.0",
    "gotham-syphon": "1.0.0",
    "gotham-validator": "1.0.0",
    "gotham-validator-rules": "1.0.0"
  },
  "overrides": {}
}
当我输入行
gotham validator rules
并运行
brunch watch
时,brunch关闭并出现该错误:

/usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:232
        throw new Error('Dependency "' + depName + '" is not present in the li
              ^
Error: Dependency "gotham-validator" is not present in the list of deps [console-polyfill, jquery, lodash, router, syphon, validator, gotham-validator-rules, validator]. Specify correct dependency in bower.json or contact package author.
这里是gotham验证器规则包的
bower.json

{
  "name": "gotham-validator-rules",
  "moduleType": "globals",
  "homepage": "https://github.com/Gotham-Framework/validator",
  "authors": [
    "Ges Jeremie <bonjour@gesjeremie.fr>"
  ],
  "description": "Validation rules for the Validator class",
  "main": "dist/validator-rules.js",
  "keywords": [
    "gotham-validator-rules"
  ],
  "license": "MIT",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "devDependencies": {
    "qunit": "~1.17.1"
  },
  "dependencies": {
    "gotham-validator": "1.0.0",
    "lodash": "~3.9.3"
  }
}
{
“名称”:“gotham验证器规则”,
“moduleType”:“全局”,
“主页”:https://github.com/Gotham-Framework/validator",
“作者”:[
“杰里米”
],
“说明”:“验证程序类的验证规则”,
“main”:“dist/validator rules.js”,
“关键词”:[
“gotham验证器规则”
],
“许可证”:“麻省理工学院”,
“忽略”:[
"**/.*",
“节点_模块”,
“bower_组件”,
“测试”,
“测试”
],
“依赖性”:{
“qunit”:“~1.17.1”
},
“依赖项”:{
“gotham验证器”:“1.0.0”,
“lodash”:“~3.9.3”
}
}

我是bower的“新手”,我肯定在某个地方犯了一个错误,但我不知道在哪里…

如果从主
bower.json中删除gotham validator会发生什么?看起来问题与回购名称和组件名称不匹配有关。看起来bower在大多数情况下都是使用repo名称来组织文件的。可能是bower的问题,或者可能是read组件需要适应这种名称不匹配的情况。如果从主
bower.json中删除gotham validator会发生什么情况?问题似乎与回购名称和组件名称不匹配有关。看起来bower在大多数情况下都是使用repo名称来组织文件的。可能是bower的问题,或者可能是read组件需要适应这种名称不匹配的情况。如果从主
bower.json中删除gotham validator会发生什么情况?问题似乎与回购名称和组件名称不匹配有关。看起来bower在大多数情况下都是使用repo名称来组织文件的。可能是bower的问题,或者可能是read组件需要适应这种名称不匹配的情况。