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

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

新規登録して質問してみよう
ただいま回答率
85.39%
コマンドプロンプト

コマンドプロンプト(cmd.exe)はMicrosoftによって提供されているコマンドラインインタプリタです。OS/2・Windows CE・Windows NTで使用可能です。

Q&A

解決済

4回答

2235閲覧

whichコマンドのインストール方法がわからない

dda

総合スコア33

コマンドプロンプト

コマンドプロンプト(cmd.exe)はMicrosoftによって提供されているコマンドラインインタプリタです。OS/2・Windows CE・Windows NTで使用可能です。

0グッド

0クリップ

投稿2020/06/19 11:56

編集2020/06/19 12:09

コマンドプロンプトでnodebrewをインストールするためにcurl -L git.io/nodebrew | perl - setupと入力したのですが途中で「'which' は、内部コマンドまたは外部コマンド、操作可能なプログラムまたはバッチ ファイルとして認識されていません。」と、表示されるのでwhichコマンドのinstall方法を調べたのですが出てきません。

アドバイスをいただければ幸いです。

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

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

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

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

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

dda

2020/06/19 12:01

はい
guest

回答4

0

ベストアンサー

nodebrewはmacOS or Linux専用です。
nodejsをWindowsでバージョン管理するのであれば、Nodistを使いましょ。

投稿2020/06/19 13:33

Mashiro

総合スコア654

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

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

guest

0

where コマンドを使いましょう。

投稿2020/06/19 12:04

takasima20

総合スコア7460

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

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

dda

2020/06/19 12:10

ありがとうございます。 実はあるコマンドの実行中に使われるものでしてwhereに変更できないのです。
takasima20

2020/06/19 12:49

それ Windows で実行できるものなんスか?
Daregada

2020/06/19 13:57

Winowsならnodist使えば?
guest

0

RubyInstallerをインストールされたら、msys64にwhichコマンドがついてます。

D:\apl\Ruby\2.6\msys64\usr\bin>which Usage: which [options] [--] COMMAND [...] Write the full path of COMMAND(s) to standard output. --version, -[vV] Print version and exit successfully. --help, Print this help and exit successfully. --skip-dot Skip directories in PATH that start with a dot. --skip-tilde Skip directories in PATH that start with a tilde. --show-dot Don't expand a dot to current directory in output. --show-tilde Output a tilde for HOME directory for non-root. --tty-only Stop processing options on the right if not on tty. --all, -a Print all matches in PATH, not just the first --read-alias, -i Read list of aliases from stdin. --skip-alias Ignore option --read-alias; don't read stdin. --read-functions Read shell functions from stdin. --skip-functions Ignore option --read-functions; don't read stdin. Recommended use is to write the output of (alias; declare -f) to standard input, so that which can show aliases and shell functions. See which(1) for examples. If the options --read-alias and/or --read-functions are specified then the output can be a full alias or function definition, optionally followed by the full path of each command used inside of those. Report bugs to <which-bugs@gnu.org>.

投稿2020/06/19 14:05

technocore

総合スコア7309

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

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

dda

2020/06/22 03:17

ありがとうございます!
guest

0

which.bat というバッチファイルを作っとけばいいかと。
そんでパス通しといてナカミはwhere

投稿2020/06/19 13:29

y_waiwai

総合スコア87979

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.39%

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

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

質問する

関連した質問