2016-06-07 112 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