こんにちは、angular のこのチュートリアルに従っていますが、次のコマンド test.bat を実行します。私はこのエラーを受け取り、あまりよくないことが原因である可能性があります。
「スクリプトをロードできません。登録されていません!プラグインが不足している可能性があります」
このチュートリアルのすべての手順に従いましたが、プラグインが足りないと思います。アプリケーションのルートに node_modules というフォルダがあり、これらのプラグインはすべてここにあります
karma
karma-chrome-launcher
karma-coffee-preprocessor
karma-firefox-launcher
karma-html2js-preprocessor
karma-jasmine
karma-junit-reporter
karma-phantomjs-launcher
karma-RequireJS
karma-script-launcher
私のkarma.config
module.exports = function(config){
config.set({
basePath : '../',
files : [
'app/lib/angular/angular.js',
'app/lib/angular/angular-*.js',
'test/lib/angular/angular-mocks.js',
'app/js/**/*.js',
'test/unit/**/*.js'
],
exclude: ['app/lib/angular/angular-scenario.js'],
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['C:/Program Files/Google/Chrome/Application/chrome.exe'],
plugins : [
'karma-junit-reporter',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine'
],
junitReporter : {
outputFile: 'test_out/unit.xml',
suite: 'unit'
}
})}
誰でも私を助けることができますか?
ありがとう