generator-angular: task “karma” not found when calling `grunt test`

后端 未结 4 1034
没有蜡笔的小新
没有蜡笔的小新 2021-02-01 14:11

I\'m trying to setup a development environment with Yeoman for AngularJS, I installed Yeoman according to the instructions: sudo npm install -g yo bower grunt-cli generato

4条回答
  •  广开言路
    2021-02-01 14:49

    after running

    npm install grunt-karma --save-dev
    

    add the following line to Gruntfile.js

    grunt.loadNpmTasks('grunt-karma');
    

    this works for me.

提交回复
热议问题