Terminal broken: -bash: echo: write error: Broken pipe
Terminal broken: -bash: echo: write error: Broken pipe
我最近一直在尝试在我的 mac 上安装 nvm for hyperledger fabric(按照此处的说明:https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html). Even though I already have it installed, it seems like I needed to put that nvm command into my .bash_profile file (I followed instructions here: https://gist.github.com/Jasondeependra/ff3988b8ce6aa062e8fe3c85fdd284c4)
我将这些行放在我的 .bash_profile 中并重新打开终端 window,但现在它似乎出现故障,顶部栏不断在 Terminal-bash 之间切换和 Terminal-bash-bash 并且控制台继续产生错误:
-bash: echo: write error: Broken pipe
我不知道该怎么办
[...] open your .bash_profile
and add the following line of code:
source ~/.bash_profile
这会导致无限循环。你应该找到更好的说明。
同时,删除这条source
语句,这样文件就不会自己重新获取资源了。
我无法编辑我的 .bash_profile 文件(无法解除锁定)并且我的终端出现故障,所以我打开了文本编辑器(纯文本文档),做了 Cmd+O
,这打开我的主目录,cmd+shift+>
显示隐藏文件,然后将当前的 .bash_profile 文件移动到垃圾箱。然后我重新启动回到终端并执行命令 touch .bash_profile
创建一个新的 .bash_profile 文件。
我最近一直在尝试在我的 mac 上安装 nvm for hyperledger fabric(按照此处的说明:https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html). Even though I already have it installed, it seems like I needed to put that nvm command into my .bash_profile file (I followed instructions here: https://gist.github.com/Jasondeependra/ff3988b8ce6aa062e8fe3c85fdd284c4)
我将这些行放在我的 .bash_profile 中并重新打开终端 window,但现在它似乎出现故障,顶部栏不断在 Terminal-bash 之间切换和 Terminal-bash-bash 并且控制台继续产生错误:
-bash: echo: write error: Broken pipe
我不知道该怎么办
[...] open your
.bash_profile
and add the following line of code:source ~/.bash_profile
这会导致无限循环。你应该找到更好的说明。
同时,删除这条source
语句,这样文件就不会自己重新获取资源了。
我无法编辑我的 .bash_profile 文件(无法解除锁定)并且我的终端出现故障,所以我打开了文本编辑器(纯文本文档),做了 Cmd+O
,这打开我的主目录,cmd+shift+>
显示隐藏文件,然后将当前的 .bash_profile 文件移动到垃圾箱。然后我重新启动回到终端并执行命令 touch .bash_profile
创建一个新的 .bash_profile 文件。