簡體   English   中英

每次我在窗口上打開終端時都會出現`-bash: rbenv: command not found`。 我該如何解決?

[英]`-bash: rbenv: command not found` comes up every time I open a terminal on window. How do I fix this?

我有這個bash: rbenv: command not found東西總是出現在我的終端上,每當我打開它時,它們會出現四次,如下所示。

請問我用的是windows,怎么解決? 我研究過的所有解決方案都是針對 MacO 量身定制的。

bash: rbenv: command not found
bash: rbenv: command not found
bash: rbenv: command not found
bash: rbenv: command not found

請問我用的是windows,怎么解決? 我研究過的所有解決方案都是針對 MacO 量身定制的。

錯誤來自bash ,一個 Unix shell。 目前還不清楚它是如何在 Windows 上運行的(也許是 Linux 的 Windows 子系統?),但 MacOS(真正的 Unix)指令應該可以工作。

大概你在某個時候在這個 Unix on Windows 環境中安裝了rbenv ,現在它已經消失了。 如果您想恢復它,請重新安裝它

如果您希望它消失,請按照卸載說明進行操作 rbenv會將一行rbenv init添加到您的 shell 啟動配置文件中。 在 bash 中,查看主目錄中的.bashrc.bash_profile文件並刪除與rbenv的任何內容。

如果您不知道如何使用 bash,請參閱Bash 簡介了解更多信息。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM