从 quickstart sb-admin-angular开始,我正在尝试运行测试,但出现错误unable to init ocLazyLoad
。(这是一台 Windows7 机器。)
我用来运行测试的命令是:
$ grunt test --force
我从这个线程中了解到,我必须确保将 ocLazyLoad 脚本的路径添加到karma.conf.js
.
files: [
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
...
'bower_components/oclazyload/dist/ocLazyLoad.min.js',
'app/scripts/**/*.js',
'test/mock/**/*.js',
'test/spec/**/*.js'
],
我也尝试过使用 Bower 重新安装 ocLacyLoad,如上述线程中所建议的那样。我有一个版本选择并选择了第一个选项:
Unable to find a suitable version for oclazyload, please choose one:
1) oclazyload#~0.5.2 which resolved to 0.5.2 and is required by sb-admin
2) oclazyload#^1.0.9 which resolved to 1.0.9
请问我在这里遗漏或损坏了哪一步?