Webエンジニアのメモ帳

技術的な話を中心に書いています。

【Git】ブランチを作成しようとすると「Can't find node in PATH」のエラー

起きたエラー

git checkout -b {ブランチ名}でブランチを作成しようとすると、以下のエラーが出ました。

Can't find node in PATH, trying to find a node binary on your system
Couldn't find the Node.js binary. Ensure you have Node.js installed. Open an issue on https://github.com/sindresorhus/run-node

解決方法

このエラーは、Node.jsをインストールすることで解決します。

Node.jsは、以下のコマンドで簡単にインストールできます。

brew install node