質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Q&A

1回答

584閲覧

Mac git ターミナル エラー なぜか「npx: installed」

mika2002

総合スコア20

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

0グッド

0クリップ

投稿2021/05/23 14:31

途方にくれています????

bash

1$ git branch 2npx: installed 15 in 2.436s 3(node:11255) ExperimentalWarning: The fs.promises API is experimental 4(node:11255) UnhandledPromiseRejectionWarning: TypeError: W.Readable.from is not a function 5 at St.Promise (/home/tonoyama/.npm/_npx/11255/lib/node_modules/git-split-diffs/build/index.js:2:7256) 6 at new Promise (<anonymous>) 7 at St (/home/tonoyama/.npm/_npx/11255/lib/node_modules/git-split-diffs/build/index.js:2:7219) 8 at jt (/home/tonoyama/.npm/_npx/11255/lib/node_modules/git-split-diffs/build/index.js:2:7470) 9(node:11255) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) 10(node:11255) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

gitのコマンドを打っているにも関わらずなぜか、npx: installedと表示されます。

なにかご存知の方がいらっしゃいましたらアドバイス頂けますと幸いです。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

itagagaki

2021/05/23 14:35

type git を実行するとどう表示されますか?
mika2002

2021/05/23 14:48

``` $ type git git is hashed (/usr/bin/git) ``` と表示されました!!
itagagaki

2021/05/23 14:58

うーん、では git --version は?
mika2002

2021/05/23 14:59

「コマンドが保存されている場所」がわかるコマンドなんですね。。 ここからなにかわかりそうでしょうか、、
mika2002

2021/05/23 15:10

` git --version git version 2.17.1`となります!
itagagaki

2021/05/24 14:51

シェルはgitを起動できていますね… うーん、なんでnpxが動いちゃっているのかわかりませんが… エラーを吐いているのはどうやらNode.jsなので、Node.jsの最新版をインストールしてみましょうか https://nodejs.org/ja/download/
guest

回答1

0

>git is hashed (/usr/bin/git)

hashコマンドで、ハッシュテーブルを削除してみてはいかがでしょう。

投稿2021/05/23 15:20

technocore

総合スコア7200

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

mika2002

2021/05/23 15:23

``` hash -d コマンド名 (指定したコマンドの記憶を削除する) hash -r (ハッシュテーブルを削除する) ``` このあたりのコマンドでしょうか????? こういったコマンドのことが全然わかっていないのでおしえて頂けますと嬉しいです
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問