2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vscodeでndenv使おうとしたらバージョンが切り替わらなかった場合にやる事

Posted at

macのターミナルからだと問題無いのに、vscodeのターミナルからだとndenvで入れたnodeを見てくれない。
~/.bash_profileに下記を追記する。

for D in `ls $HOME/.ndenv/shims`
do
  export PATH="$HOME/.ndenv/shims:$PATH"
done

そして

$ source ~/.bash_profile

下記vscodeのターミナルから実行してバージョンが表示されればOK。(nodeのバージョンはご自由に)

$ ndenv local v11.10.1
$ node -v

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?