宇宙船をインストールするためのコマンド./install.sh --bin-dir /c/Users/slapbot/starship/
実行中にエラーが発生しています(#1310で説明したように/ usr / local / binが存在しないため、-bin-dirを指定する必要があることに注意してください)
エラー:
$ ./install.sh --bin-dir /c/Users/slapbot/starship/
Configuration
> Bin directory: /c/Users/slapbot/starship/
> Platform: msys_nt-10.0-19041
> Arch: x86_64
> Tarball URL: https://github.com/starship/starship/releases/latest/download/starship-x86_64-msys_nt-10.0-19041.tar.gz
? Install Starship latest to /c/Users/slapbot/starship/? [y/N] y
! Bin directory /c/Users/slapbot/starship/ is not in your $PATH
> Installing Starship, please wait…
x Command failed (exit code 22): curl --silent --fail --location https://github.com/starship/starship/releases/latest/download/starship-x86_64-msys_nt-10.0-19041.tar.gz
> This is likely due to Starship not yet supporting your configuration.
> If you would like to see a build for your configuration,
> please create an issue requesting a build for x86_64-msys_nt-10.0-19041:
> https://github.com/starship/starship/issues/new/\n
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
現在のビルドを見つけた後、クリーンインストール成功メッセージ。
https://github.com/ではなくます。設定エラーにつながる
はい、それは私たちのプラットフォーム検出スクリプトの失敗です。
追加のフラグ--platform pc-windows-msvc
実行してみてください。 それはあなたの完全なコマンドになります
./install.sh --bin-dir /c/Users/slapbot/starship/ --platform pc-windows-msvc`
これは、自動プラットフォーム検出をバイパスする必要があります。 その後、スクリプトと宇宙船が期待どおりに機能する場合は、プラットフォーム検出にmsysを追加します。
わーい! これで、期待どおりに機能します。
この問題に遭遇した他の人へのちょっとしたリマインダーは、あなたのbin-dir
をあなたのパスに追加することを忘れないことです。 要約すると:
curl -fsSL https://starship.rs/install.sh > ./install.sh
mkdir ~/starship
./install.sh --bin-dir /c/Users/<username>/starship/ --platform pc-windows-msvc
# Starship configuration
export PATH=$PATH:"/c/Users/<username>/starship"
eval "$(starship init bash)"
source ~/.bashrc
そして、あなたは驚くべきプロンプトを実行しました! 🎉
すべての作業者に感謝します。常にoh-my-zshのようなものが必要でしたが、bashが必要でした(cygwinなどをインストールする必要がない限りzshはWindowsで使用できないためです!)-現在のインストールをもう少し作成できることを願っていますインストールスクリプトを調整することでシームレスに。 :)
はい、それは私たちのプラットフォーム検出スクリプトの失敗です。
@chipbusterhttps ://github.com/starship/starship/pull/1315内で処理し
@SlapBot広範で精巧なレポートをありがとう👍これを
@ vladimyr #1315はすでに十分な大きさです。 それに取り組みたいのなら、#1315に基づいてドラフトPRを開き、#1315がマージされたらそれを開くことができますか? そのPR(「Windowsの生活の質のアップグレード」など)で#1310に対処することもできます。
さらに良い👍
広範で精巧なレポートをありがとうございます👍これをgitbashまたはWSLで実行していた簡単な質問ですか?
@ vladimyr-問題ありません! GitBashで実行します。
@ vladimyr-問題ありません! GitBashで実行します。
ありがとう👍
最も参考になるコメント
わーい! これで、期待どおりに機能します。
この問題に遭遇した他の人へのちょっとしたリマインダーは、あなたの
bin-dir
をあなたのパスに追加することを忘れないことです。 要約すると:curl -fsSL https://starship.rs/install.sh > ./install.sh
mkdir ~/starship
./install.sh --bin-dir /c/Users/<username>/starship/ --platform pc-windows-msvc
source ~/.bashrc
そして、あなたは驚くべきプロンプトを実行しました! 🎉
すべての作業者に感謝します。常にoh-my-zshのようなものが必要でしたが、bashが必要でした(cygwinなどをインストールする必要がない限りzshはWindowsで使用できないためです!)-現在のインストールをもう少し作成できることを願っていますインストールスクリプトを調整することでシームレスに。 :)