我正在运行一个ember cli app。我试图安装ember-model,因为它比ember数据更适合我的api;但是,我一直遇到问题。
控制台检查员说安装了ember-model但却给出了它无法找到模块余烬模型的错误:
DEBUG: -------------------------------
ember.debug.js:5197DEBUG: Ember : 1.11.1
ember.debug.js:5197DEBUG: jQuery : 2.1.3
ember.debug.js:5197DEBUG: Ember Simple Auth : 0.7.3
ember.debug.js:5197DEBUG: Ember Model : 0.0.14
ember.debug.js:5197DEBUG: -------------------------------
home:24 [Report Only] Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' localhost:35729 0.0.0.0:35729". Either the 'unsafe-inline' keyword, a hash ('sha256-dBUwLbnABTnfa7no4FIMYM3DjtgGo_MdnLBNX10mFLg='), or a nonce ('nonce-...') is required to enable inline execution.
VM1973:81 Ember Inspector Active
loader.js:110Uncaught Error: Could not find module `ember-model` imported from `task-app/models/address-book/home`
您可以看到安装了ember模型并使用版本0.0.14。为什么会发生这种错误?