搜尋

首頁  >  問答  >  主體

node - 新浪雲git push報錯 Unable to select a buildpack

新浪雲git push報錯 Unable to select a buildpack,

leadreamdeMacBook-Pro:leadream leadream$ git push sae master:1
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 826 bytes | 0 bytes/s, done.
Total 7 (delta 2), reused 0 (delta 0)
remote: Exporting git code...
remote: Uploading...
-----> Unable to select a buildpack
remote: {"Code":0,"Data":"build image failed: exit status 1."}
remote: ERROR: Failed to build image
remote: error: hook declined to update refs/heads/1
To https://git.sinacloud.com/where
! [remote rejected] master -> 1 (hook declined)
error: failed to push some refs to 'https://git.sinacloud.com/where'

小夥伴們有遇過這種情況的嗎?

習慣沉默習慣沉默2794 天前858

全部回覆(2)我來回復

  • ringa_lee

    ringa_lee2017-05-02 09:34:32

    目錄錯了,我git clone下來之後,在專案根目錄下多了一個專案資料夾,所有檔案像package.json都在裡面。當我在根目錄運行時,找不到package.json,所以報錯。

    回覆
    0
  • 阿神

    阿神2017-05-02 09:34:32

    樓主解決了嗎?我也遇到這個問題,

    回覆
    0
  • 取消回覆