LoginSignup
0
0

More than 1 year has passed since last update.

nodebrewでバージョン指定してもバージョンが変わらない

Posted at

バイトのときに少し触って以来久々にNode.jsを触る機会があり,Node.jsのバージョンアップから始めた.

状況

nodebrewを使わずにnodeを使っていたので,nodebrewをインストールして始めようとしたが,

nodebrew install-binary v18.12.1 

でインストールして

nodebrew use v18.12.1

でバージョン選択しても

node -v 
v18.10.0

となり,バージョンが変わらない.

export PATH="$PATH:/Users/~~~ユーザー名~~~/.nodebrew/node/v18.12.1/bin"

としてパスを通しても変わらない.

解決

brew list

を見ると,homebrewでnodeをインストールしていたため,

brew uninstall node

でbrewで入れたnodeをアンインストール.

which node

nodeの場所を聞くと

/Users/~~~ユーザー名~~~/.nodebrew/node/v18.12.1/bin/node

お,いけてそう.

v18.12.1

いけた!

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