Grunt –force works because you tell it to bypass the karma tests. Notice if you run grunt –force, it’ll still say “Done, but with warnings”.
To fix:
add “karma-jasmine” and “karma-chrome-launcher” (or whatever launcher you use) to the devDependencies in packages.json and run npm install again.
npm install karma-jasmine --save-dev
npm install karma-chrome-launcher --save-dev
This will save karma-jasmine and karma-chrome-launcher in your project’s package.json file. The packages can then be installed by running:
npm install
Source: No provider for “framework:jasmine”! (Resolving: framework:jasmine)