LoginSignup
8
8

More than 5 years have passed since last update.

direnv + npm の設定例

Last updated at Posted at 2014-10-12

direnv とは

あるディレクトリに移動した時に、特定の環境変数を設定するツールです。

より詳しい内容は、以下の記事をご参照下さい。
http://qiita.com/kompiro/items/5fc46089247a56243a62

./node_modules/.bin を $PATH へ含める例

.envrc へ以下の設定を含める

export PATH=$(npm bin):$PATH

これで、プロジェクト内のディレクトリに居る場合には、ローカルの node_modules/.bin 以下のコマンドを優先して使うようになりました。

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