Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8691

nodenvをアップデートする

$
0
0

anyenvで管理してるnodenvのアップデート方法。
nodenv updateでサクッといけると思ったが、いけなかったので備忘録。

結論

一度アンインストールして再インストールする。

$ anyenv uninstall nodenv
$ anyenv install nodenv

これでnodenv install -lすれば最新版までリストアップされるはず。

試したこと

1. anyenvをアップデートする

anyenvをアップデートしたら、管理下のnodenvも自動的にアップデートされるのでは?との思いで決行。

$ brew upgrade anyenv

変化なし。撃沈。

2. nodenvアップデートコマンドを実行する

nodenvにもアップデートコマンドがあるのかなと思い、勢いで実行。

$ nodenv update

そんなコマンドはありませんでした。ちゃんとhelpを確認しましょう

$ nodenv help
Usage: nodenv <command>[<args>]

Some useful nodenv commands are:
   commands    List all available nodenv commands
   local       Set or show the local application-specific Node version
   global      Set or show the global Node version
   shell       Set or show the shell-specific Node version
   install     Install a Node version using node-build
   uninstall   Uninstall a specific Node version
   rehash      Rehash nodenv shims (run this after installing executables)
   version     Show the current Node version and its origin
   versions    List installed Node versions
   which       Display the full path to an executable
   whence      List all Node versions that contain the given executable

See `nodenv help<command>' for information on a specific command.
For full documentation, see: https://github.com/nodenv/nodenv#readme

3. 一度アンインストールして再インストール

こちらの記事にすべて書いてありました。

anyenvによるnode.jsの更新 | ゴンの気まぐれなるままに

ありがたや。

$ anyenv uninstall nodenv
$ anyenv install nodenv

無事アップデート完了。


Viewing all articles
Browse latest Browse all 8691

Trending Articles