[英].bash_profile permission denied
我正在嘗試使用 github 發布我的第一個項目,但我無法在本地測試構建。
我按照這里的步驟操作: https://jekyllrb.com/docs/installation/macos/
我被困在以下命令行運行中:
echo "source $(brew --prefix)/opt/chruby/share/chruby/chruby.sh" >> ~/.bash_profile
echo "source $(brew --prefix)/opt/chruby/share/chruby/auto.sh" >> ~/.bash_profile
echo "chruby ruby-3.1.2" >> ~/.bash_profile # run 'chruby' to see actual version
每次我運行第一個時,我都會收到以下錯誤:
-bash:/Users/account/.bash_profile:權限被拒絕
這對我來說都是全新的,老實說,當涉及到控制台時,我不知道自己在做什么。 我在 MacOS Monetory 上,我的 shell 是 bash。 任何幫助將非常感激!
某些東西已損壞或更改了您的.bash_profile
腳本的所有權。
打開 Terminal.app 並執行以下操作:
mv -f ~/.bash_profile ~/.bash_profile
cp ~/.bash_profile.old ~/.bash_profile
這些命令顯示不會產生錯誤。
現在嘗試將您的腳本重新運行到 append 到.bash_profile
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.