2016-02-24 31 views
0

我正在按照模板found here的安裝和設置說明進行操作。在運行jspm install命令之前,似乎一切正常。下面是輸出:bigcommerce-stencil/citadel repo not found

$ jspm install 
    Looking up npm:lodash 
    Updating registry cache... 
    Looking up github:bigcommerce-stencil/stencil-utils 
    Looking up github:bigcommerce-stencil/citadel 
    Looking up github:jspm/nodelibs-url 
    Looking up github:vakata/jstree 
    Looking up github:hubspot/pace 

warn Using local override for github:hubspot/[email protected] 
    Looking up github:jackmoore/zoom 
    Looking up github:browserstate/history.js 
    Looking up github:asyncly/EventEmitter2 
    Looking up github:ftlabs/fastclick 
    Looking up github:kenwheeler/slick 
    Looking up github:casperin/nod 
    Looking up github:components/jquery 
    Looking up github:caolan/async 
    Looking up github:bigcommerce-labs/foundation 

err Repo github:bigcommerce-stencil/citadel not found! 

warn Installation changes not saved. 

如果我再次運行該命令,它看起來像github:bigcommerce-stencil/stencil-utils回購未發現:

$ jspm install 
    Looking up npm:lodash 
    Updating registry cache... 
    Looking up github:bigcommerce-stencil/citadel 
    Looking up github:bigcommerce-stencil/stencil-utils 
    Looking up github:jspm/nodelibs-url 
    Looking up github:casperin/nod 
    Looking up github:kenwheeler/slick 
    Looking up github:asyncly/EventEmitter2 
    Looking up github:vakata/jstree 
    Looking up github:browserstate/history.js 
    Looking up github:hubspot/pace 

warn Using local override for github:hubspot/[email protected] 
    Looking up github:bigcommerce-labs/foundation 
    Looking up github:components/jquery 
    Looking up github:jackmoore/zoom 
    Looking up github:ftlabs/fastclick 
    Looking up github:caolan/async 
    Downloading npm:[email protected] 
    Downloading github:hubspot/[email protected] 
    Downloading github:jspm/[email protected] 
    Downloading github:casperin/[email protected] 
    Downloading github:browserstate/[email protected] 
    Downloading github:bigcommerce-labs/[email protected] 
    Downloading github:vakata/[email protected] 
    Downloading github:asyncly/[email protected] 
    Downloading github:jackmoore/[email protected] 
    Downloading github:ftlabs/[email protected] 
    Downloading github:kenwheeler/[email protected] 

err Repo github:bigcommerce-stencil/stencil-utils not found! 

warn Installation changes not saved. 

如果我再次運行它,我得到的原始輸出。它似乎隨機變化。所以,問題是,爲什麼不能找到這些回購?

我知道我有機會獲得回購,因爲如果我嘗試直接克隆它,它工作正常使用命令:

git clone https://github.com/bigcommerce-stencil/citadel.git 

任何想法?

+0

您是否按照以下步驟操作? https://stencil.bigcommerce.com/docs/installing-stencil-cli-1#Register_jspm – Alyss

+0

是的,我完全按照這些步驟。奇怪的是,我只是改變了我的Github訪問令牌,似乎解決了這個問題。按照文檔指示,在檢查範圍「repo:status」,「repo_deployment」和「public_repo」的三個框之前。但是,我只是編輯了令牌並檢查了父「回購」框,而不是它下面的三個單獨的框,現在'jspm install'命令正在運行。 – flyingL123

+0

@Alyss,這絕對是問題所在。如果我將其更改回來,我會再次發生錯誤。我認爲你應該更新文檔以明確說明你需要檢查「回購」複選框。檢查文檔中提到的個人權限似乎不起作用。 – flyingL123

回答

0

導致此問題的原因是需要檢查Github訪問令牌repo而不僅僅是與repo關聯的子資源。模板文檔已更新以反映此情況。