No provider for “framework:jasmine”! (Resolving: framework:jasmine)

前端 未结 6 1397
死守一世寂寞
死守一世寂寞 2020-12-22 21:32

When I run the command grunt I get the following warning:

Running \"karma:unit\" (karma) task
Warning: No provider for \"framework:jasmine\"! (         


        
6条回答
  •  长情又很酷
    2020-12-22 22:21

    It happened to me because I had Karma installed globally, and when I ran karma start command it actually ran in /usr/... rather than my dev directory.

    In my case the solution was to remove karma and install karma-cli instead.

    npm remove -g karma
    npm install -g karma-cli
    

提交回复
热议问题