systemjs 无法 link 并下载我的新模块

systemjs is unable to link and down load my new module

我创建了一个 angular 模块,该模块正在使用 npm 作为我公司注册表中的私有节点模块进行下载

即使我将默认扩展名设置为 js

,我的 systemjs 总是在我的当前目录中使用任何扩展名搜索它

确保您的 systemjs 配置正确保存所有映射

下面是一个 systemjs confi,其中包含不同的 angular2 模块

modules and loads from different folders
(function (global) {
  System.config({
    defaultExtension: 'js',
    paths: {
      // paths serve as alias
      'npm:': 'node_modules/'
    },
    // map tells the System loader where to look for things
    map: {
      // our app is within the app folder
      app: 'src',
      // angular bundles
      '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
      '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
      '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
      '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
      '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
      '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
      '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
      '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',

      // other libraries
      'rxjs':                      'npm:rxjs',
      'angular-in-memory-web-api': 'npm:angular-in-memory-web-api',
      'ng2-pagination': 'npm:ng2-pagination/dist/ng2-pagination-bundle.js',

      //private modules
      'local': 'local/',
      'candi-services': 'npm:candi-services',
      'candi-loader': 'npm:candi-loader',
      'candi-global-search': 'npm:candi-global-search'

    },
    // packages tells the System loader how to load when no filename and/or no extension
    packages: {
      defaultExtension: 'js',
      app: {
        main: 'app/main.js',
        defaultExtension: 'js'
      },
      local: {
        main: 'main.js',
        defaultExtension: 'js'
      },
      'candi-loader' : {
        main: './index.js',
        defaultExtension: 'js'
      },
      'candi-services' : {
        main: './index.js',
        defaultExtension: 'js'
      },
       'candi-global-search' : {
        main: './index.js',
        defaultExtension: 'js'
      },
      rxjs: {
        defaultExtension: 'js'
      },
      'angular-in-memory-web-api': {
        main: './index.js',
        defaultExtension: 'js'
      }
    }
  });
})(this);