“没有提供者错误”在Karma上运行angularjs phonecat教程

前端之家收集整理的这篇文章主要介绍了“没有提供者错误”在Karma上运行angularjs phonecat教程前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经找到并尝试了许多在这里和其他地方提供的解决方案:重新降级业务版本升级节点和npm – 改变配置文件中的负载顺序….
但到目前为止没有任何作用。问题是我通过Apache运行角度教程?

启动Karma Server(http://karma-runner.github.io)

/usr/local/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)
    at error (/usr/local/lib/node_modules/karma/node_modules/di/lib/injector.js:22:68)
    at Object.parent.get (/usr/local/lib/node_modules/karma/node_modules/di/lib/injector.js:9:13)
    at get (/usr/local/lib/node_modules/karma/node_modules/di/lib/injector.js:54:19)
    at /usr/local/lib/node_modules/karma/lib/server.js:28:14
    at Array.forEach (native)
    at start (/usr/local/lib/node_modules/karma/lib/server.js:27:21)
    at invoke (/usr/local/lib/node_modules/karma/node_modules/di/lib/injector.js:75:15)
    at Object.exports.start (/usr/local/lib/node_modules/karma/lib/server.js:204:12)
    at Object.<anonymous> (/usr/local/lib/node_modules/karma/bin/karma
/usr/local/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)
    at error (/usr/local/lib/node_modules/karma/node_modules/di/lib/injector.js:22:68)
    at Object.parent.get (/usr/local/lib/node_modules/karma/node_modules/di/lib/injector.js:9:13)
    at get (/usr/local/lib/node_modules/karma/node_modules/di/lib/injector.js:54:19)
    at /usr/local/lib/node_modules/karma/lib/server.js:28:14
    at Array.forEach (native)
    at start (/usr/local/lib/node_modules/karma/lib/server.js:27:21)
    at invoke (/usr/local/lib/node_modules/karma/node_modules/di/lib/injector.js:75:15)
    at Object.exports.start (/usr/local/lib/node_modules/karma/lib/server.js:204:12)
    at Object.<anonymous> (/usr/local/lib/node_modules/karma/bin/karma:19:39)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3
你必须安装茉莉花
npm install -g karma-jasmine
原文链接:https://www.f2er.com/angularjs/144772.html

猜你在找的Angularjs相关文章