2016-06-07 133 views
1

我正在尝试使用jspm将mapbox gl包添加到我的Aurealia Typescript skeleton中。我正在使用以下命令。通过jspm失败安装mapbox-gl包

jspm install npm:mapbox-gl

这是我得到。

Looking up npm:mapbox-gl 
Updating registry cache... 
Downloading npm:[email protected] 

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安装包时,它正常工作。有什么建议么?

+0

您可能需要一个垫片配置才能使用。搜索关于如何创建和测试的jspm文档。 –

回答

0

考虑你正在使用JSPM,你可能也想尝试,并通过GitHub库而不是通过NPM引用它:

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

它为我用JSPM v16.x和v0.21.0 of MapboxGL