2016-06-16 96 views
1

這真是令人沮喪。JSPM無法安裝(從github 404)但可以安裝從npm

作爲我的組織的一部分,承辦github的回購協議的Package.json。我正試圖通過jspm來解決這個問題。

{ 
    "name": "tf-modernizr", 
    "version": "1.0.0", 
    "description": "", 
    "main": "modernizr.js", 
    "scripts": { 
    "test": "echo \"Error: no test specified\" && exit 1" 
    }, 
    "repository": { 
    "type": "git", 
    "url": "git+https://github.com/tomorrowfinance/tf-modernizr.git" 
    }, 
    "author": "Simon Douglas", 
    "license": "MIT", 
    "bugs": { 
    "url": "https://github.com/tomorrowfinance/tf-modernizr/issues" 
    }, 
    "homepage": "https://github.com/tomorrowfinance/tf-modernizr#readme", 
    "directories": {} 
} 

NPM安裝工程優良(!!!)

運行JSPM安裝: jspm install github:tomorrowfinance/[email protected]jspm install github:tomorrowfinance/tf-modernizr告訴我有一個404

Looking up github:tomorrowfinance/tf-modernizr 
Updating registry cache... 
Downloading github:tomorrowfinance/[email protected] 
warn Error on download for github:tomorrowfinance/tf-modernizr 
Bad response code 404 
err Error downloading github:tomorrowfinance/tf-modernizr. 

文檔這裏http://jspm.io/docs/getting-started.html沒有按沒有幫助。這裏的文檔https://github.com/jspm/registry/wiki/Configuring-Packages-for-jspm很複雜。我錯過了什麼?

+0

你嘗試去回購:

只需用配置獲取github上?它不存在:https://github.com/tomorrowfinance/tf-modernizr – Quill

+0

我公開,JSPM很高興。它必須考慮使用私有回購製作JSPM。儘管它確實解決了我的問題,但這並不能真正回答問題:/ – Simon

+0

如果是私人回購,@Simon,則必須添加git憑證 – Quill

回答

1

由於這是一個私有存儲庫,因此您需要允許jspm訪問它。 jspm registry config github