2017-04-01 71 views
0

我嘗試運行Windows 7在我的電腦上安裝的Magento 2,與Magento的,無業遊民(https://github.com/paliarush/magento2-vagrant-for-developers與Magento的,流浪的失敗

的幫助下在步其中說,進入「慶典init_project安裝Magento的2 .SH」我得到以下錯誤:

[2017-04-01 16:06:14] STATUS: Checking requirements [/w/projets/shoptest.dev/vagrant-magento/scripts/host/check_requirements.sh]] [2017-04-01 16:06:14] STATUS: Installing missing vagrant plugins [init_project.sh]] [2017-04-01 16:06:16] STATUS: Generating random IP address, and host name to prevent collisions (if no custom values specified) [init_project.sh]] [2017-04-01 16:06:17] STATUS: Configuring git for Windows host [init_project.sh]] [2017-04-01 16:06:18] STATUS: Checking out CE repository [init_project.sh]] [2017-04-01 16:06:20] ERROR: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. [Unknown source file]] error: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

我已經檢查了我的C:/users/username/.ssh文件夾具有公共密鑰:正確

我已籤,當我跑「的ssh -add -l「我有一個輸出的各種數字和字母mexed toget她的。正確。

我已經通過運行「ssh-add〜/ .ssh/id_rsa」將SSH密鑰添加到ssh代理中。正確,完成。

我已將複製的密鑰粘貼到GitHub.com上SSH密鑰字段的「設置> ssh和pgp密鑰」類別中。完成。

我githubt帳戶內的鑰匙圖標變成綠色,消息:

"Last used within the last day"

出現做bash init_project.sh

我應該怎麼做之後?我迷路了,對github和ssh一般都不太瞭解。只需按照教程中的步驟操作即可。

回答

1

聽起來好像你還沒有完成你的git的設置,你必須與你的git的用戶名配置的git客戶端,電子郵件:

$ git config --global user.name "John Doe" 
    $ git config --global user.email [email protected] 

更多細節及附加混帳信息在: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

+0

謝謝,但我仍然顯示錯誤消息。我現在添加了我的用戶名和電子郵件,當我檢查我的設置時,兩者都已設置。但我仍然堅持。 – mlclm

+0

哇,好的。我正在使用錯誤的命令行窗口來實現它。我在WIndows cmd窗口。現在使用Git Bash,顯然它似乎正在取得進展,因爲它現在正在「檢查CE存儲庫」。失敗並學習正確嗎?無論如何,感謝Steve的幫助。 – mlclm

1

我最近在vagrant上成功安裝了magento 2(最新版本2.16),並設法解決了許多依賴和公共密鑰問題。爲了幫助任何可能出現類似問題的人,我創建了一個github項目,它提供了有關如何在windows上安裝magento 2與vagrant的流浪文件和說明(在win10上測試,不知道win7但應該可以):

https://github.com/chen0040/vagrant-magento-2.16

0

您是否將公鑰添加到GitHub中?

Git Bash輸入clip < ~/.ssh/id_rsa.pub將您的公鑰複製到剪貼板,然後轉到https://github.com/settings/keys並創建一個新密鑰並粘貼到那裏。

也嘗試從Git Bash運行bash init_project.sh,以管理員身份運行。