无法使用 jspm 安装托管在私有注册表上的 npm 包

Unable to install npm package hosted on a private registry with jspm

我正在尝试让 jspm 使用私有 npm 注册中心(镜像 public 注册中心)。

我使用端点配置工具从 .npmrc 配置 jspm 似乎工作成功

GAVINJ:jspm-test gavinj$ jspm endpoint config npm
npmrc found, would you like to use these settings? [yes]:
npm registry [http://registry.npm.ourcompanyname.net/]:
Would you like to test these credentials? [yes]:
ok   npm authentication is working successfully.
ok   Endpoint npm configured successfully.

安装我们的包 'michelangelo'(不在 public npm 注册表中)工作正常

GAVINJ:jspm-test gavinj$ npm install michelangelo
highstock-release@2.0.4 node_modules/highstock-release
jquery@2.1.3 node_modules/jquery
d3@3.5.5 node_modules/d3
lodash@3.3.1 node_modules/lodash
michelangelo@2.0.1641 node_modules/michelangelo

尝试通过 jspm 安装相同的 npm 包无效。

GAVINJ:jspm-test gavinj$ jspm install michelangelo=npm:michelangelo
     Looking up npm:michelangelo

err  Repo michelangelo not found!

warn Installation changes not saved.

尝试通过 jspm 安装 lodash 完美无缺

GAVINJ:jspm-test gavinj$ jspm install lodash=npm:lodash
     Looking up npm:lodash
     Updating registry cache...
     Looking up github:jspm/nodelibs-process
     Looking up npm:process
ok   Up to date - lodash as npm:lodash@^3.3.1 (3.3.1)
ok   Install tree has no forks.

ok   Install complete.

这是我的 jspm 配置文件的样子

{
  "registry": "jspm",
  "endpoints": {
    "github": {
      "timeouts": {
        "lookups": 60
      },
      "handler": "jspm-github",
      "remote": "https://github.jspm.io"
    },
    "npm": {
      "timeouts": {
        "lookups": 60
      },
      "registry": "http://registry.npm.ourcompanyname.net/",
      "remote": "https://npm.jspm.io",
      "auth": "PRIVATE_HERE_BUT_SAME_AS_NPMRC_FILE",
      "handler": "jspm-npm"
    },
    "jspm": {
      "timeouts": {
        "lookups": 60
      },
      "handler": "jspm-registry",
      "remote": "https://registry.jspm.io"
    }
  }
}

知道为什么我无法通过 jspm 安装 npm pacakge 吗?或者,关于我如何追踪问题的任何建议?

原来注册表url不能以/结尾。

一旦我删除了尾部的斜线,它就像一个魅力。