Cannot find plugin "karma-jasmine"

Jimmy

when i run karma start i face with this errors

31 12 2015 09:59:40.923:WARN [plugin]: Cannot find plugin "karma-jasmine".
  Did you forget to install it ?
  npm install karma-jasmine --save-dev
31 12 2015 09:59:40.934:WARN [plugin]: Cannot find plugin "karma-phantomjs-launcher".
  Did you forget to install it ?
  npm install karma-phantomjs-launcher --save-dev
/home/ubuntu/.nvm/versions/node/v4.2.1/lib/node_modules/karma/node_modules/di/lib/injector.js:9
      throw error('No provider for "' + name + '"!');
      ^

Error: No provider for "framework:jasmine"! (Resolving: framework:jasmine)

clearly it complains because it does not have karma-jasmin and i run this command

sudo npm install karma-jasmine --save-dev

to make sure it is installed, and in response it gives me this message

npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
[email protected] node_modules/karma-jasmine.

I mean, it seems to me that karma-jasmin is installed. and then i tried

sudo npm install karma-phantomjs-launcher --save-dev

The problem is, i expect that after these two commands i can run karma start but again it complains that, cannot find plugin "karma-jasmin"

update: i have this in my package.json:

"devDependencies": {
    "karma": "^0.13.15",
    "karma-chrome-launcher": "^0.2.2",
    "karma-jasmine": "^0.3.6",
    "karma-phantomjs-launcher": "^0.2.2"
  }
Jimmy

it seems to me that the solution was in

npm install -g karma-cli

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Testing an AngularJS factory with Karma (Jasmine)

ANT task for calling Karma/Jasmine

Isolation with Angular on karma jasmine

karma + jasmine + webpack: module is not a function

Cannot find module 'eslint-plugin-angular'

Karma Jasmine testing $resource called from controller

Karma-jasmine not installing

Spy on setTimeout and clearTimeout in Karma and Jasmine

Karma/Jasmine/PhantomJs: undefined is not a constructor

Can't find source maps for Karma + Jasmine + TypeScript + Webpack

Angular Karma Jasmine - test function

Karma + Jasmine: Cannot read property 'getComponentFromError'

Karma/Jasmine – cannot start testing with new Angular 5 project (due tot index.d.ts errors)

Test IF in Subscribe using Karma and Jasmine

How to unit test condition in promise then() karma and jasmine

Scons plugin in Eclipse cannot find scons executable

Cordova Plugin CallLog cannot find symbol

Karma Jasmine NPM config

Karma Jasmine AngularJS module not defined

Karma/Jasmine won't inject ionic controller

Cannot compare HTML string in karma/jasmine/PhantomJS test because of icon

Angular Testing with Karma Jasmine Failed

Karma Jasmine Cordova plugins

inject a custom service in karma jasmine

karma-jasmine - how to test return object

Cannot get boost::process to find gstreamer plugin

Karma + Jasmine - Default unit test "it should create" failing with error "Uncaught TypeError: Cannot read property 'nativeElement' of undefined"

Karma-Jasmine: TypeError: Cannot read properties of undefined (reading 'get')

Karma/Jasmine failure: "ReferenceError: $ is not defined" in Angular 11

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    pump.io port in URL

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

  14. 14

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  15. 15

    How to use merge windows unallocated space into Ubuntu using GParted?

  16. 16

    flutter: dropdown item programmatically unselect problem

  17. 17

    Pandas - check if dataframe has negative value in any column

  18. 18

    Nuget add packages gives access denied errors

  19. 19

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  20. 20

    Generate random UUIDv4 with Elm

  21. 21

    Client secret not provided in request error with Keycloak

HotTag

Archive