LoginSignup
5
5

More than 5 years have passed since last update.

VSCodeで「PATH上でランタイムnodeを見つけることができませんでした」と表示される対処方法

Posted at

スクリーンショット 2018-08-16 21.07.49.png

これは、実行するために必要なnodeのコマンドがわからないよーというエラーです。
ですので、明示的に指定して上げる必要があります。

nodeコマンドのパスの調べ方

whichコマンド で調べられます。

terminal
$ which node
/Users/furusin/.nodebrew/current/bin/node

私の場合はこのように表示されました。
この出力結果を launch.json に次のように追記してあげます。

launch.json
"runtimeExecutable": "/Users/furusin/.nodebrew/current/bin/node",

これでnodeのPATHが通るようになります。

5
5
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5