LoginSignup
2
2

More than 5 years have passed since last update.

InetlliJ+Nodistでnpm実行するためのNodeパス

Posted at

はじめに

InetlliJ(WebStrom/PhpStorm)でのnpm実行は、登録しておいて右上の矢印から実行すると便利です。
phpStorm-右上スクリプト実行ボタン.PNG
(緑矢印で実行できる)

ただ、Nodeのバージョン管理ソフトのNodistを使用した環境だと、InetlliJがNodeのパスを解決できないようです。

必要な設定

Nodistインストールパスはデフォルトで話を進めます。

設定1.PNG

まず、スクリプト登録時に以下を入力します。

"Node interpreter" => ‪C:\Program Files (x86)\Nodist\bin\node.exe

その他項目を登録して実行すると、以下のダイアログが出るので、
phpStorm-npmパス入力ダイアログ.PNG

以下を入力します。

Npm package => C:\Program Files (x86)\Nodist\npm

以上で、実行できるはずです。

2
2
0

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
2
2