未捕获错误:无法找到模块simple-auth-devise / configuration

时间:2014-10-06 20:06:16

标签: ember.js ember-simple-auth

我正在尝试从Windows迁移到ubuntu。我有ember应用程序在Windows上运行查找但在ubuntu上的同一个项目抛出error Uncaught Error: Could not find module simple-auth-devise/configuration

我跟着的步骤

  1. git clone
  2. npm install&&凉亭安装
  3. ember serve
  4. 寡妇 应用\ node_modules \余烬-CLI-简单-AUTH-色器件\应用\初始化

    import initializer from 'simple-auth-devise/initializer';
    export default initializer;
    
    在ubuntu上

    import Configuration from 'simple-auth-devise/configuration';
    import Authenticator from 'simple-auth-devise/authenticators/devise';
    import Authorizer from 'simple-auth-devise/authorizers/devise';
    import ENV from '../config/environment';
    
    export default {
      name:       'simple-auth-devise',
      before:     'simple-auth',
      initialize: function(container, application) {
        Configuration.load(container, ENV['simple-auth-devise'] || {});
        container.register('simple-auth-authorizer:devise', Authorizer);
        container.register('simple-auth-authenticator:devise', Authenticator);
      }
    };
    

    的index.html

    <script>
          window.EventorENV = {{ENV}};
          window.EmberENV = window.EventorENV.EmberENV;
          window.ENV = window.ENV || {};
          window.ENV['simple-auth'] = {
            authorizer: 'simple-auth-authorizer:devise'
          }
        </script>
        <script src="assets/vendor.js"></script>
        <script src="assets/eventor.js"></script>
        <script>
          window.Eventor = require('eventor/app')['default'].create(EventorENV.APP);
        </script>
    

0 个答案:

没有答案