我正在尝试与durandal玩,但我收到此错误:
错误:
bower requirejs extra-resolution Unnecessary resolution: requirejs#~2.2.0
bower.json
{
"name": "asp.net",
"private": true,
"dependencies": {
"underscore": "~1.8.3",
"bootstrap": "~3.3.6",
"bootswatch": "3.3.6",
"jquery": "2.2.3",
"jquery-validation": "1.15.0",
"jquery-validation-unobtrusive": "~3.2.6",
"angular": "1.5.7",
"angular-route": "~1.5.7",
"durandal": "~2.1.0",
"requirejs": "~2.2.0"
}
}
没有运气找出它意味着什么或我需要做些什么来解决它. RequireJS已经把它变成了我的lib文件夹,所以我想知道它是不是真的是一个错误?
最佳答案 Durandal已经依赖于requirejs,见
here
{
"name": "Durandal",
"version": "2.2.0",
"dependencies": {
"jquery": "^1.9.1",
"knockout": "^3.4.0",
"requirejs": "^2.1.11",
"requirejs-text": "^2.0.12"
}
}
因此,要么从bower.json中删除“requirejs”:“~2.2.0”,要么可以为bower.json文件添加分辨率并指定组件名称&版本,见here.