【发布时间】:2016-06-11 22:19:20
【问题描述】:
我目前正在努力将 npm 库引入我的 Angular2 应用程序(特别是 https://github.com/manfredsteyer/angular2-oauth2)。
当我尝试将库导入我的应用程序时,我收到 404。如果我将库添加到我的 systemjs.config.js map 和 packages 部分,我只是为库的依赖项获得 404。添加这些依赖项后,我会为每个依赖项的依赖项(等等)获得 404。
我还向 GitHub 存储库添加了一个类型映射:
"dependencies": {
"angular2-oauth2": "github:manfredsteyer/angular2-oauth2/oauth-service.d.ts#0a0d321"
}
我在这里错过了什么?
【问题讨论】: