Karma throws error: Can not load “ng-html2js”, it is not registered

前端 未结 4 1702
不知归路
不知归路 2020-12-03 20:31

I\'m getting an error when I run karma start:

$ karma start
INFO [karma]: Karma v0.10.2 server started at http://localhost:9876/
INFO [launcher]         


        
4条回答
  •  暖寄归人
    2020-12-03 20:58

    If you are starting and running a global install of Karma, one that's installed with -g flag, and is run without specifying a path, i.e. karma start path/to/config.js, then make sure the plugins are also globally installed, i.e. npm install -g karma-ng-html2js-preprocessor.

    If you're running a local install of Karma, i.e. path/to/karma start path/to/config.js then make sure plugin is also installed locally to that application.

提交回复
热议问题