通过 jspm 安装 mapbox-gl 包失败

Install mapbox-gl package via jspm failing

我正在尝试使用 jspm 将 mapbox gl 包添加到我的 Aurealia Typescript skeleton。我正在使用以下命令。

jspm install npm:mapbox-gl

这就是我得到的。

Looking up npm:mapbox-gl
Updating registry cache...
Downloading npm:mapbox-gl@0.19.1

warn Error on processPackageConfig
     Package.json dependency mapbox-gl-shaders set to github:mapbox/mapbox-gl-shaders#e4737bb136d718f9c5fe8d943380f05db6249b57, which is not a valid dependency format for npm.
     It's advisable to publish jspm-style packages to GitHub or another registry so conventions are clear.

warn Error processing package config for npm:mapbox-gl.

err  Error processing package config for npm:mapbox-gl.

warn Installation changes not saved.

我正在使用 jspm 0.16.36

当我尝试通过 npm install mapbox-gl 安装软件包时,它工作正常。有什么建议吗?

考虑到您正在使用 jspm,您可能还想尝试通过 GitHub 存储库而不是通过 npm 引用它:

$ jspm install github:mapbox/mapbox-gl-js

它适用于 jspm v16.x 和 v0.21.0 of MapboxGL