Appcelerator / Mac / 開発環境

Node.jsを切り替える

ツールはどれを選ぶか大変!

めんどくせぇ~。

参考 Node.jsのバージョン管理ツールを改めて選定する【2021年】

上記を見た感じたと、fnm が良さそうなので、それをインストールすることにした。

なんか良さそうなインストール用ドキュメントないかな?って探してたら

fnm (Fast Node Manager) のインストール方法と使い方

Macの場合

curl -fsSL https://fnm.vercel.app/install | bash
~ % curl -fsSL https://fnm.vercel.app/install | bash
Downloading fnm using Homebrew...
Checking dependencies for the installation script...
Checking availability of curl... OK!
Checking availability of unzip... OK!
Checking availability of Homebrew (brew)... Missing!
Not installing fnm due to missing dependencies.
~ % 

Homebrewがインストールされていない!

HomeBrew インストール

以下のURLを参照してインストール

https://brew.sh/index_ja

以下のコマンドを実行してインストール

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

 ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:

パスワードを聞かれるので、パスワードを入力

==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort:

Enterを押下する(Enterを押さずにXCodeツールはインストールしなくてもよかったと思う)

==> /usr/bin/sudo /bin/mkdir -p /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod ug=rwx /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod go-w /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown misadmin /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R misadmin:admin /usr/local/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Users/misadmin/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/misadmin/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R misadmin /Users/misadmin/Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools for Xcode-13.2
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ for\ Xcode-13.2
Software Update Tool

Finding available software

Downloading Command Line Tools for Xcode

「Downloading Command Line Tools for Xcode」から先が動かないが、時間が経てばXCodeがインストールされる

==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort:
Downloaded Command Line Tools for Xcode
Installing Command Line Tools for Xcode
Done with Command Line Tools for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:

パスワード入力が促されるので、パスワードを入力する

==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
==> Downloading and installing Homebrew...
remote: Enumerating objects: 201843, done.
remote: Counting objects: 100% (308/308), done.
remote: Compressing objects: 100% (195/195), done.
remote: Total 201843 (delta 131), reused 261 (delta 92), pack-reused 201535
Receiving objects: 100% (201843/201843), 55.36 MiB | 603.00 KiB/s, done.
Resolving deltas: 100% (148950/148950), done.
From https://github.com/Homebrew/brew
 * [new branch]          dependabot/bundler/Library/Homebrew/rbi-0.0.11 -> origin/dependabot/bundler/Library/Homebrew/rbi-0.0.11
 * [new branch]          fxcoudert-patch-1 -> origin/fxcoudert-patch-1
 * [new branch]          master            -> origin/master
 * [new tag]             0.1               -> 0.1
 * [new tag]             0.2               -> 0.2
 * [new tag]             0.3               -> 0.3
 * [new tag]             0.4               -> 0.4
 * [new tag]             0.5               -> 0.5
 * [new tag]             0.6               -> 0.6
 * [new tag]             0.7               -> 0.7
 * [new tag]             0.7.1             -> 0.7.1
 * [new tag]             0.8               -> 0.8
 * [new tag]             0.8.1             -> 0.8.1
 * [new tag]             0.9               -> 0.9
 * [new tag]             0.9.1             -> 0.9.1
 * [new tag]             0.9.2             -> 0.9.2
 * [new tag]             0.9.3             -> 0.9.3
 * [new tag]             0.9.4             -> 0.9.4
 * [new tag]             0.9.5             -> 0.9.5
 * [new tag]             0.9.8             -> 0.9.8
 * [new tag]             0.9.9             -> 0.9.9
 * [new tag]             1.0.0             -> 1.0.0
 * [new tag]             1.0.1             -> 1.0.1
 * [new tag]             1.0.2             -> 1.0.2
 * [new tag]             1.0.3             -> 1.0.3
 * [new tag]             1.0.4             -> 1.0.4
 * [new tag]             1.0.5             -> 1.0.5
 * [new tag]             1.0.6             -> 1.0.6
 * [new tag]             1.0.7             -> 1.0.7
 * [new tag]             1.0.8             -> 1.0.8
 * [new tag]             1.0.9             -> 1.0.9
 * [new tag]             1.1.0             -> 1.1.0
 * [new tag]             1.1.1             -> 1.1.1
 * [new tag]             1.1.10            -> 1.1.10
 * [new tag]             1.1.11            -> 1.1.11
 * [new tag]             1.1.12            -> 1.1.12
 * [new tag]             1.1.13            -> 1.1.13
 * [new tag]             1.1.2             -> 1.1.2
 * [new tag]             1.1.3             -> 1.1.3
 * [new tag]             1.1.4             -> 1.1.4
 * [new tag]             1.1.5             -> 1.1.5
 * [new tag]             1.1.6             -> 1.1.6
 * [new tag]             1.1.7             -> 1.1.7
 * [new tag]             1.1.8             -> 1.1.8
 * [new tag]             1.1.9             -> 1.1.9
 * [new tag]             1.2.0             -> 1.2.0
 * [new tag]             1.2.1             -> 1.2.1
 * [new tag]             1.2.2             -> 1.2.2
 * [new tag]             1.2.3             -> 1.2.3
 * [new tag]             1.2.4             -> 1.2.4
 * [new tag]             1.2.5             -> 1.2.5
 * [new tag]             1.2.6             -> 1.2.6
 * [new tag]             1.3.0             -> 1.3.0
 * [new tag]             1.3.1             -> 1.3.1
 * [new tag]             1.3.2             -> 1.3.2
 * [new tag]             1.3.3             -> 1.3.3
 * [new tag]             1.3.4             -> 1.3.4
 * [new tag]             1.3.5             -> 1.3.5
 * [new tag]             1.3.6             -> 1.3.6
 * [new tag]             1.3.7             -> 1.3.7
 * [new tag]             1.3.8             -> 1.3.8
 * [new tag]             1.3.9             -> 1.3.9
 * [new tag]             1.4.0             -> 1.4.0
 * [new tag]             1.4.1             -> 1.4.1
 * [new tag]             1.4.2             -> 1.4.2
 * [new tag]             1.4.3             -> 1.4.3
 * [new tag]             1.5.0             -> 1.5.0
 * [new tag]             1.5.1             -> 1.5.1
 * [new tag]             1.5.10            -> 1.5.10
 * [new tag]             1.5.11            -> 1.5.11
 * [new tag]             1.5.12            -> 1.5.12
 * [new tag]             1.5.13            -> 1.5.13
 * [new tag]             1.5.14            -> 1.5.14
 * [new tag]             1.5.2             -> 1.5.2
 * [new tag]             1.5.3             -> 1.5.3
 * [new tag]             1.5.4             -> 1.5.4
 * [new tag]             1.5.5             -> 1.5.5
 * [new tag]             1.5.6             -> 1.5.6
 * [new tag]             1.5.7             -> 1.5.7
 * [new tag]             1.5.8             -> 1.5.8
 * [new tag]             1.5.9             -> 1.5.9
 * [new tag]             1.6.0             -> 1.6.0
 * [new tag]             1.6.1             -> 1.6.1
 * [new tag]             1.6.10            -> 1.6.10
 * [new tag]             1.6.11            -> 1.6.11
 * [new tag]             1.6.12            -> 1.6.12
 * [new tag]             1.6.13            -> 1.6.13
 * [new tag]             1.6.14            -> 1.6.14
 * [new tag]             1.6.15            -> 1.6.15
 * [new tag]             1.6.16            -> 1.6.16
 * [new tag]             1.6.17            -> 1.6.17
 * [new tag]             1.6.2             -> 1.6.2
 * [new tag]             1.6.3             -> 1.6.3
 * [new tag]             1.6.4             -> 1.6.4
 * [new tag]             1.6.5             -> 1.6.5
 * [new tag]             1.6.6             -> 1.6.6
 * [new tag]             1.6.7             -> 1.6.7
 * [new tag]             1.6.8             -> 1.6.8
 * [new tag]             1.6.9             -> 1.6.9
 * [new tag]             1.7.0             -> 1.7.0
 * [new tag]             1.7.1             -> 1.7.1
 * [new tag]             1.7.2             -> 1.7.2
 * [new tag]             1.7.3             -> 1.7.3
 * [new tag]             1.7.4             -> 1.7.4
 * [new tag]             1.7.5             -> 1.7.5
 * [new tag]             1.7.6             -> 1.7.6
 * [new tag]             1.7.7             -> 1.7.7
 * [new tag]             1.8.0             -> 1.8.0
 * [new tag]             1.8.1             -> 1.8.1
 * [new tag]             1.8.2             -> 1.8.2
 * [new tag]             1.8.3             -> 1.8.3
 * [new tag]             1.8.4             -> 1.8.4
 * [new tag]             1.8.5             -> 1.8.5
 * [new tag]             1.8.6             -> 1.8.6
 * [new tag]             1.9.0             -> 1.9.0
 * [new tag]             1.9.1             -> 1.9.1
 * [new tag]             1.9.2             -> 1.9.2
 * [new tag]             1.9.3             -> 1.9.3
 * [new tag]             2.0.0             -> 2.0.0
 * [new tag]             2.0.1             -> 2.0.1
 * [new tag]             2.0.2             -> 2.0.2
 * [new tag]             2.0.3             -> 2.0.3
 * [new tag]             2.0.4             -> 2.0.4
 * [new tag]             2.0.5             -> 2.0.5
 * [new tag]             2.0.6             -> 2.0.6
 * [new tag]             2.1.0             -> 2.1.0
 * [new tag]             2.1.1             -> 2.1.1
 * [new tag]             2.1.10            -> 2.1.10
 * [new tag]             2.1.11            -> 2.1.11
 * [new tag]             2.1.12            -> 2.1.12
 * [new tag]             2.1.13            -> 2.1.13
 * [new tag]             2.1.14            -> 2.1.14
 * [new tag]             2.1.15            -> 2.1.15
 * [new tag]             2.1.16            -> 2.1.16
 * [new tag]             2.1.2             -> 2.1.2
 * [new tag]             2.1.3             -> 2.1.3
 * [new tag]             2.1.4             -> 2.1.4
 * [new tag]             2.1.5             -> 2.1.5
 * [new tag]             2.1.6             -> 2.1.6
 * [new tag]             2.1.7             -> 2.1.7
 * [new tag]             2.1.8             -> 2.1.8
 * [new tag]             2.1.9             -> 2.1.9
 * [new tag]             2.2.0             -> 2.2.0
 * [new tag]             2.2.1             -> 2.2.1
 * [new tag]             2.2.10            -> 2.2.10
 * [new tag]             2.2.11            -> 2.2.11
 * [new tag]             2.2.12            -> 2.2.12
 * [new tag]             2.2.13            -> 2.2.13
 * [new tag]             2.2.14            -> 2.2.14
 * [new tag]             2.2.15            -> 2.2.15
 * [new tag]             2.2.16            -> 2.2.16
 * [new tag]             2.2.17            -> 2.2.17
 * [new tag]             2.2.2             -> 2.2.2
 * [new tag]             2.2.3             -> 2.2.3
 * [new tag]             2.2.4             -> 2.2.4
 * [new tag]             2.2.5             -> 2.2.5
 * [new tag]             2.2.6             -> 2.2.6
 * [new tag]             2.2.7             -> 2.2.7
 * [new tag]             2.2.8             -> 2.2.8
 * [new tag]             2.2.9             -> 2.2.9
 * [new tag]             2.3.0             -> 2.3.0
 * [new tag]             2.4.0             -> 2.4.0
 * [new tag]             2.4.1             -> 2.4.1
 * [new tag]             2.4.10            -> 2.4.10
 * [new tag]             2.4.11            -> 2.4.11
 * [new tag]             2.4.12            -> 2.4.12
 * [new tag]             2.4.13            -> 2.4.13
 * [new tag]             2.4.14            -> 2.4.14
 * [new tag]             2.4.15            -> 2.4.15
 * [new tag]             2.4.16            -> 2.4.16
 * [new tag]             2.4.2             -> 2.4.2
 * [new tag]             2.4.3             -> 2.4.3
 * [new tag]             2.4.4             -> 2.4.4
 * [new tag]             2.4.5             -> 2.4.5
 * [new tag]             2.4.6             -> 2.4.6
 * [new tag]             2.4.7             -> 2.4.7
 * [new tag]             2.4.8             -> 2.4.8
 * [new tag]             2.4.9             -> 2.4.9
 * [new tag]             2.5.0             -> 2.5.0
 * [new tag]             2.5.1             -> 2.5.1
 * [new tag]             2.5.10            -> 2.5.10
 * [new tag]             2.5.11            -> 2.5.11
 * [new tag]             2.5.12            -> 2.5.12
 * [new tag]             2.5.2             -> 2.5.2
 * [new tag]             2.5.3             -> 2.5.3
 * [new tag]             2.5.4             -> 2.5.4
 * [new tag]             2.5.5             -> 2.5.5
 * [new tag]             2.5.6             -> 2.5.6
 * [new tag]             2.5.7             -> 2.5.7
 * [new tag]             2.5.8             -> 2.5.8
 * [new tag]             2.5.9             -> 2.5.9
 * [new tag]             2.6.0             -> 2.6.0
 * [new tag]             2.6.1             -> 2.6.1
 * [new tag]             2.6.2             -> 2.6.2
 * [new tag]             2.7.0             -> 2.7.0
 * [new tag]             2.7.1             -> 2.7.1
 * [new tag]             2.7.2             -> 2.7.2
 * [new tag]             2.7.3             -> 2.7.3
 * [new tag]             2.7.4             -> 2.7.4
 * [new tag]             2.7.5             -> 2.7.5
 * [new tag]             2.7.6             -> 2.7.6
 * [new tag]             2.7.7             -> 2.7.7
 * [new tag]             3.0.0             -> 3.0.0
 * [new tag]             3.0.1             -> 3.0.1
 * [new tag]             3.0.10            -> 3.0.10
 * [new tag]             3.0.11            -> 3.0.11
 * [new tag]             3.0.2             -> 3.0.2
 * [new tag]             3.0.3             -> 3.0.3
 * [new tag]             3.0.4             -> 3.0.4
 * [new tag]             3.0.5             -> 3.0.5
 * [new tag]             3.0.6             -> 3.0.6
 * [new tag]             3.0.7             -> 3.0.7
 * [new tag]             3.0.8             -> 3.0.8
 * [new tag]             3.0.9             -> 3.0.9
 * [new tag]             3.1.0             -> 3.1.0
 * [new tag]             3.1.1             -> 3.1.1
 * [new tag]             3.1.10            -> 3.1.10
 * [new tag]             3.1.11            -> 3.1.11
 * [new tag]             3.1.12            -> 3.1.12
 * [new tag]             3.1.2             -> 3.1.2
 * [new tag]             3.1.3             -> 3.1.3
 * [new tag]             3.1.4             -> 3.1.4
 * [new tag]             3.1.5             -> 3.1.5
 * [new tag]             3.1.6             -> 3.1.6
 * [new tag]             3.1.7             -> 3.1.7
 * [new tag]             3.1.8             -> 3.1.8
 * [new tag]             3.1.9             -> 3.1.9
 * [new tag]             3.2.0             -> 3.2.0
 * [new tag]             3.2.1             -> 3.2.1
 * [new tag]             3.2.10            -> 3.2.10
 * [new tag]             3.2.11            -> 3.2.11
 * [new tag]             3.2.12            -> 3.2.12
 * [new tag]             3.2.13            -> 3.2.13
 * [new tag]             3.2.14            -> 3.2.14
 * [new tag]             3.2.15            -> 3.2.15
 * [new tag]             3.2.16            -> 3.2.16
 * [new tag]             3.2.17            -> 3.2.17
 * [new tag]             3.2.2             -> 3.2.2
 * [new tag]             3.2.3             -> 3.2.3
 * [new tag]             3.2.4             -> 3.2.4
 * [new tag]             3.2.5             -> 3.2.5
 * [new tag]             3.2.6             -> 3.2.6
 * [new tag]             3.2.7             -> 3.2.7
 * [new tag]             3.2.8             -> 3.2.8
 * [new tag]             3.2.9             -> 3.2.9
 * [new tag]             3.3.0             -> 3.3.0
 * [new tag]             3.3.1             -> 3.3.1
 * [new tag]             3.3.10            -> 3.3.10
 * [new tag]             3.3.11            -> 3.3.11
 * [new tag]             3.3.12            -> 3.3.12
 * [new tag]             3.3.2             -> 3.3.2
 * [new tag]             3.3.3             -> 3.3.3
 * [new tag]             3.3.4             -> 3.3.4
 * [new tag]             3.3.5             -> 3.3.5
 * [new tag]             3.3.6             -> 3.3.6
 * [new tag]             3.3.7             -> 3.3.7
 * [new tag]             3.3.8             -> 3.3.8
 * [new tag]             3.3.9             -> 3.3.9
HEAD is now at c40b2baf9 Merge pull request #12799 from Homebrew/revert-12797-dependabot/bundler/Library/Homebrew/i18n-1.9.0
==> Tapping homebrew/core
remote: Enumerating objects: 1133741, done.
remote: Counting objects: 100% (114/114), done.
remote: Compressing objects: 100% (61/61), done.
Receiving objects: 100% (1133741/1133741), 449.06 MiB | 1.03 MiB/s, done.
Resolving deltas: 100% (783437/783437), done.
From https://github.com/Homebrew/homebrew-core
 * [new branch]              master     -> origin/master
HEAD is now at a0e81be5dbf exploitdb: update 2022-01-28 bottle.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

 ~ %

fnm インストール

 ~ %  curl -fsSL https://fnm.vercel.app/install | bash
Downloading fnm using Homebrew...
Checking dependencies for the installation script...
Checking availability of curl... OK!
Checking availability of unzip... OK!
Checking availability of Homebrew (brew)... OK!
==> Downloading https://ghcr.io/v2/homebrew/core/fnm/manifests/1.29.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/fnm/blobs/sha256:df1c73e0461744
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring fnm--1.29.2.monterey.bottle.tar.gz
if [ "$SKIP_SHELL" != "true" ]; then
  setup_shell
fi
==> Caveats
zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/fnm/1.29.2: 11 files, 7.9MB
==> Running `brew cleanup fnm`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
 ~ % 

インストール確認

~ % fnm -V
fnm 1.29.2
~ % 

インストールできるバージョン一覧

~ % fnm list-remote
v0.1.14
v0.1.15
v0.1.16
v0.1.17
v0.1.18
v0.1.19
v0.1.20
v0.1.21
v0.1.22
v0.1.23
v0.1.24
v0.1.25
v0.1.26
v0.1.27
v0.1.28
v0.1.29
v0.1.30
v0.1.31
v0.1.32
v0.1.33
v0.1.90
v0.1.91
v0.1.92
v0.1.93
v0.1.94
v0.1.95
v0.1.96
v0.1.97
v0.1.98
v0.1.99
v0.1.100
v0.1.101
v0.1.102
v0.1.103
v0.1.104
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.3.6
v0.3.7
v0.3.8
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.4.5
v0.4.6
v0.4.7
v0.4.8
v0.4.9
v0.4.10
v0.4.11
v0.4.12
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.5.10
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.6.4
v0.6.5
v0.6.6
v0.6.7
v0.6.8
v0.6.9
v0.6.10
v0.6.11
v0.6.12
v0.6.13
v0.6.14
v0.6.15
v0.6.16
v0.6.17
v0.6.18
v0.6.19
v0.6.20
v0.6.21
v0.7.0
v0.7.1
v0.7.2
v0.7.3
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.7.9
v0.7.10
v0.7.11
v0.7.12
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.8.4
v0.8.5
v0.8.6
v0.8.7
v0.8.8
v0.8.9
v0.8.10
v0.8.11
v0.8.12
v0.8.13
v0.8.14
v0.8.15
v0.8.16
v0.8.17
v0.8.18
v0.8.19
v0.8.20
v0.8.21
v0.8.22
v0.8.23
v0.8.24
v0.8.25
v0.8.26
v0.8.27
v0.8.28
v0.9.0
v0.9.1
v0.9.2
v0.9.3
v0.9.4
v0.9.5
v0.9.6
v0.9.7
v0.9.8
v0.9.9
v0.9.10
v0.9.11
v0.9.12
v0.10.0
v0.10.1
v0.10.2
v0.10.3
v0.10.4
v0.10.5
v0.10.6
v0.10.7
v0.10.8
v0.10.9
v0.10.10
v0.10.11
v0.10.12
v0.10.13
v0.10.14
v0.10.15
v0.10.16
v0.10.17
v0.10.18
v0.10.19
v0.10.20
v0.10.21
v0.10.22
v0.10.23
v0.10.24
v0.10.25
v0.10.26
v0.10.27
v0.10.28
v0.10.29
v0.10.30
v0.10.31
v0.10.32
v0.10.33
v0.10.34
v0.10.35
v0.10.36
v0.10.37
v0.10.38
v0.10.39
v0.10.40
v0.10.41
v0.10.42
v0.10.43
v0.10.44
v0.10.45
v0.10.46
v0.10.47
v0.10.48
v0.11.0
v0.11.1
v0.11.2
v0.11.3
v0.11.4
v0.11.5
v0.11.6
v0.11.7
v0.11.8
v0.11.9
v0.11.10
v0.11.11
v0.11.12
v0.11.13
v0.11.14
v0.11.15
v0.11.16
v0.12.0
v0.12.1
v0.12.2
v0.12.3
v0.12.4
v0.12.5
v0.12.6
v0.12.7
v0.12.8
v0.12.9
v0.12.10
v0.12.11
v0.12.12
v0.12.13
v0.12.14
v0.12.15
v0.12.16
v0.12.17
v0.12.18
v4.0.0
v4.1.0
v4.1.1
v4.1.2
v4.2.0 (Argon)
v4.2.1 (Argon)
v4.2.2 (Argon)
v4.2.3 (Argon)
v4.2.4 (Argon)
v4.2.5 (Argon)
v4.2.6 (Argon)
v4.3.0 (Argon)
v4.3.1 (Argon)
v4.3.2 (Argon)
v4.4.0 (Argon)
v4.4.1 (Argon)
v4.4.2 (Argon)
v4.4.3 (Argon)
v4.4.4 (Argon)
v4.4.5 (Argon)
v4.4.6 (Argon)
v4.4.7 (Argon)
v4.5.0 (Argon)
v4.6.0 (Argon)
v4.6.1 (Argon)
v4.6.2 (Argon)
v4.7.0 (Argon)
v4.7.1 (Argon)
v4.7.2 (Argon)
v4.7.3 (Argon)
v4.8.0 (Argon)
v4.8.1 (Argon)
v4.8.2 (Argon)
v4.8.3 (Argon)
v4.8.4 (Argon)
v4.8.5 (Argon)
v4.8.6 (Argon)
v4.8.7 (Argon)
v4.9.0 (Argon)
v4.9.1 (Argon)
v5.0.0
v5.1.0
v5.1.1
v5.2.0
v5.3.0
v5.4.0
v5.4.1
v5.5.0
v5.6.0
v5.7.0
v5.7.1
v5.8.0
v5.9.0
v5.9.1
v5.10.0
v5.10.1
v5.11.0
v5.11.1
v5.12.0
v6.0.0
v6.1.0
v6.2.0
v6.2.1
v6.2.2
v6.3.0
v6.3.1
v6.4.0
v6.5.0
v6.6.0
v6.7.0
v6.8.0
v6.8.1
v6.9.0 (Boron)
v6.9.1 (Boron)
v6.9.2 (Boron)
v6.9.3 (Boron)
v6.9.4 (Boron)
v6.9.5 (Boron)
v6.10.0 (Boron)
v6.10.1 (Boron)
v6.10.2 (Boron)
v6.10.3 (Boron)
v6.11.0 (Boron)
v6.11.1 (Boron)
v6.11.2 (Boron)
v6.11.3 (Boron)
v6.11.4 (Boron)
v6.11.5 (Boron)
v6.12.0 (Boron)
v6.12.1 (Boron)
v6.12.2 (Boron)
v6.12.3 (Boron)
v6.13.0 (Boron)
v6.13.1 (Boron)
v6.14.0 (Boron)
v6.14.1 (Boron)
v6.14.2 (Boron)
v6.14.3 (Boron)
v6.14.4 (Boron)
v6.15.0 (Boron)
v6.15.1 (Boron)
v6.16.0 (Boron)
v6.17.0 (Boron)
v6.17.1 (Boron)
v7.0.0
v7.1.0
v7.2.0
v7.2.1
v7.3.0
v7.4.0
v7.5.0
v7.6.0
v7.7.0
v7.7.1
v7.7.2
v7.7.3
v7.7.4
v7.8.0
v7.9.0
v7.10.0
v7.10.1
v8.0.0
v8.1.0
v8.1.1
v8.1.2
v8.1.3
v8.1.4
v8.2.0
v8.2.1
v8.3.0
v8.4.0
v8.5.0
v8.6.0
v8.7.0
v8.8.0
v8.8.1
v8.9.0 (Carbon)
v8.9.1 (Carbon)
v8.9.2 (Carbon)
v8.9.3 (Carbon)
v8.9.4 (Carbon)
v8.10.0 (Carbon)
v8.11.0 (Carbon)
v8.11.1 (Carbon)
v8.11.2 (Carbon)
v8.11.3 (Carbon)
v8.11.4 (Carbon)
v8.12.0 (Carbon)
v8.13.0 (Carbon)
v8.14.0 (Carbon)
v8.14.1 (Carbon)
v8.15.0 (Carbon)
v8.15.1 (Carbon)
v8.16.0 (Carbon)
v8.16.1 (Carbon)
v8.16.2 (Carbon)
v8.17.0 (Carbon)
v9.0.0
v9.1.0
v9.2.0
v9.2.1
v9.3.0
v9.4.0
v9.5.0
v9.6.0
v9.6.1
v9.7.0
v9.7.1
v9.8.0
v9.9.0
v9.10.0
v9.10.1
v9.11.0
v9.11.1
v9.11.2
v10.0.0
v10.1.0
v10.2.0
v10.2.1
v10.3.0
v10.4.0
v10.4.1
v10.5.0
v10.6.0
v10.7.0
v10.8.0
v10.9.0
v10.10.0
v10.11.0
v10.12.0
v10.13.0 (Dubnium)
v10.14.0 (Dubnium)
v10.14.1 (Dubnium)
v10.14.2 (Dubnium)
v10.15.0 (Dubnium)
v10.15.1 (Dubnium)
v10.15.2 (Dubnium)
v10.15.3 (Dubnium)
v10.16.0 (Dubnium)
v10.16.1 (Dubnium)
v10.16.2 (Dubnium)
v10.16.3 (Dubnium)
v10.17.0 (Dubnium)
v10.18.0 (Dubnium)
v10.18.1 (Dubnium)
v10.19.0 (Dubnium)
v10.20.0 (Dubnium)
v10.20.1 (Dubnium)
v10.21.0 (Dubnium)
v10.22.0 (Dubnium)
v10.22.1 (Dubnium)
v10.23.0 (Dubnium)
v10.23.1 (Dubnium)
v10.23.2 (Dubnium)
v10.23.3 (Dubnium)
v10.24.0 (Dubnium)
v10.24.1 (Dubnium)
v11.0.0
v11.1.0
v11.2.0
v11.3.0
v11.4.0
v11.5.0
v11.6.0
v11.7.0
v11.8.0
v11.9.0
v11.10.0
v11.10.1
v11.11.0
v11.12.0
v11.13.0
v11.14.0
v11.15.0
v12.0.0
v12.1.0
v12.2.0
v12.3.0
v12.3.1
v12.4.0
v12.5.0
v12.6.0
v12.7.0
v12.8.0
v12.8.1
v12.9.0
v12.9.1
v12.10.0
v12.11.0
v12.11.1
v12.12.0
v12.13.0 (Erbium)
v12.13.1 (Erbium)
v12.14.0 (Erbium)
v12.14.1 (Erbium)
v12.15.0 (Erbium)
v12.16.0 (Erbium)
v12.16.1 (Erbium)
v12.16.2 (Erbium)
v12.16.3 (Erbium)
v12.17.0 (Erbium)
v12.18.0 (Erbium)
v12.18.1 (Erbium)
v12.18.2 (Erbium)
v12.18.3 (Erbium)
v12.18.4 (Erbium)
v12.19.0 (Erbium)
v12.19.1 (Erbium)
v12.20.0 (Erbium)
v12.20.1 (Erbium)
v12.20.2 (Erbium)
v12.21.0 (Erbium)
v12.22.0 (Erbium)
v12.22.1 (Erbium)
v12.22.2 (Erbium)
v12.22.3 (Erbium)
v12.22.4 (Erbium)
v12.22.5 (Erbium)
v12.22.6 (Erbium)
v12.22.7 (Erbium)
v12.22.8 (Erbium)
v12.22.9 (Erbium)
v12.22.10 (Erbium)
v13.0.0
v13.0.1
v13.1.0
v13.2.0
v13.3.0
v13.4.0
v13.5.0
v13.6.0
v13.7.0
v13.8.0
v13.9.0
v13.10.0
v13.10.1
v13.11.0
v13.12.0
v13.13.0
v13.14.0
v14.0.0
v14.1.0
v14.2.0
v14.3.0
v14.4.0
v14.5.0
v14.6.0
v14.7.0
v14.8.0
v14.9.0
v14.10.0
v14.10.1
v14.11.0
v14.12.0
v14.13.0
v14.13.1
v14.14.0
v14.15.0 (Fermium)
v14.15.1 (Fermium)
v14.15.2 (Fermium)
v14.15.3 (Fermium)
v14.15.4 (Fermium)
v14.15.5 (Fermium)
v14.16.0 (Fermium)
v14.16.1 (Fermium)
v14.17.0 (Fermium)
v14.17.1 (Fermium)
v14.17.2 (Fermium)
v14.17.3 (Fermium)
v14.17.4 (Fermium)
v14.17.5 (Fermium)
v14.17.6 (Fermium)
v14.18.0 (Fermium)
v14.18.1 (Fermium)
v14.18.2 (Fermium)
v14.18.3 (Fermium)
v14.19.0 (Fermium)
v15.0.0
v15.0.1
v15.1.0
v15.2.0
v15.2.1
v15.3.0
v15.4.0
v15.5.0
v15.5.1
v15.6.0
v15.7.0
v15.8.0
v15.9.0
v15.10.0
v15.11.0
v15.12.0
v15.13.0
v15.14.0
v16.0.0
v16.1.0
v16.2.0
v16.3.0
v16.4.0
v16.4.1
v16.4.2
v16.5.0
v16.6.0
v16.6.1
v16.6.2
v16.7.0
v16.8.0
v16.9.0
v16.9.1
v16.10.0
v16.11.0
v16.11.1
v16.12.0
v16.13.0 (Gallium)
v16.13.1 (Gallium)
v16.13.2 (Gallium)
v17.0.0
v17.0.1
v17.1.0
v17.2.0
v17.3.0
v17.3.1
v17.4.0
~ % 

インストール

fnm install {version}
~ % fnm install v12.22.9
Installing Node v12.22.9 (x64)
~ % 
~ % fnm install v14.19.0
Installing Node v14.19.0 (x64)
~ %

アンインストール

fnm uninstall {version}

利用するバージョンの確認

~ % fnm current
error: `fnm env` was not applied in this context.
Can't find fnm's environment variables
~ % 
~ % fnm list
* v12.22.9 default
* system
~ %

利用するバージョンの指定

fnm use {version}

#デフォルトのバージョンを指定する場合
fnm default {version}
~ % fnm use v12.22.9
error: We can't find the necessary environment variables to replace the Node version.
You should setup your shell profile to evaluate `fnm env`, see https://github.com/Schniz/fnm#shell-setup on how to do this
Check out our documentation for more information: https://fnm.vercel.app
~ % fnm default v12.22.9
~ % 
~ % fnm default v14.19.0


利用するバージョンの確認

~ % fnm current
error: `fnm env` was not applied in this context.
Can't find fnm's environment variables
~ % fnm list
* v12.22.9 default
* system
~ % 

エラーが発生している。

.zshrc

eval "$(fnm env)"

brew install fnm でもダメ

~ % brew install fnm
Running `brew update --preinstall`...
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
atlas                                     canfigger                                 inotify-tools                             tfschema
==> Updated Formulae
Updated 142 formulae.


fnm 1.29.2 is already installed but outdated (so it will be upgraded).
==> Downloading https://ghcr.io/v2/homebrew/core/fnm/manifests/1.30.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/fnm/blobs/sha256:93e5c1dfe439b13eee010ff04c8c41d482f32f5b56ec172a271a0c6f9b878a0b
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:93e5c1dfe439b13eee010ff04c8c41d482f32f5b56ec172a271a0c6f9b878a0b?se=2022-01-31T12%
######################################################################## 100.0%
==> Upgrading fnm
  1.29.2 -> 1.30.1 

==> Pouring fnm--1.30.1.monterey.bottle.tar.gz
==> Caveats
zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/fnm/1.30.1: 11 files, 7.8MB
==> Running `brew cleanup fnm`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/fnm/1.29.2... (11 files, 7.9MB)
Removing: /Users/misadmin/Library/Caches/Homebrew/fnm--1.29.2... (3.1MB)
~ % fnm list

再起動してみた

~ % fnm list
* v12.22.9 default
* system
~ % fnm use v12.22.9
Using Node v12.22.9
~ % fnm list        
* v12.22.9 default
* system
~ % fnm env
export PATH="/Users/misadmin/Library/Caches/fnm_multishells/684_1643633977163/bin":$PATH
export FNM_MULTISHELL_PATH="/Users/misadmin/Library/Caches/fnm_multishells/684_1643633977163"
export FNM_VERSION_FILE_STRATEGY="local"
export FNM_DIR="/Users/misadmin/Library/Application Support/fnm"
export FNM_LOGLEVEL="info"
export FNM_NODE_DIST_MIRROR="https://nodejs.org/dist"
export FNM_ARCH="x64"
rehash
~ % node -v
v12.22.9
~ %

あれ? 動いた!

2022/02/08 設定状況

~ % fnm list
* v12.22.9
* v14.19.0 default
* system
~ % fnm env
export PATH="/Users/misadmin/Library/Caches/fnm_multishells/2135_1644285776099/bin":$PATH
export FNM_MULTISHELL_PATH="/Users/misadmin/Library/Caches/fnm_multishells/2135_1644285776099"
export FNM_VERSION_FILE_STRATEGY="local"
export FNM_DIR="/Users/misadmin/Library/Application Support/fnm"
export FNM_LOGLEVEL="info"
export FNM_NODE_DIST_MIRROR="https://nodejs.org/dist"
export FNM_ARCH="x64"
rehash
~ % node -v
v14.19.0
~ % 

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA


Xcodeインストール

2022年2月1日