search

Home  >  Q&A  >  body text

javascript - Why does karma start karma.conf.js always prompt that jasmine-core is not installed, but I have already installed it?

  1. Why does karma start karma.conf.js always prompt that jasmime-core is not installed?

    Cannot find module 'jasmine-core'
    
    但是我已经安装jasmin-core
    
    "dependencies": {
    "jasmine-core": "^2.6.2",
    "karma": "^1.7.0",
    "karma-jasmine": "^1.1.0"

    }

高洛峰高洛峰2851 days ago656

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-24 11:39:12

    Global installation

    npm install -g karma
    npm install -g jasmine-core
    npm install -g karma-jasmine
    

    reply
    0
  • Cancelreply